Skip to content

Unexpected Syntax Error #1162

Open
Open
@Amm3135

Description

@Amm3135

Hi. I just use this SDK in Laravel, It's not working when I want to get simple information of bot
`<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {

$response = Telegram\Bot\Laravel\Facades\Telegram::getMe();

$botId = $response->getId();
$firstName = $response->getFirstName();
$username = $response->getUsername();
dd($botId);

});
`
it is completely correct but i dont know what i am encounter with this error and it refers to call Facade Telegram:
Internal Server Error

JsonException
Syntax error

i have been really confused. can you help me with this problem?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions