Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$response->getMessageId() return null #573

Closed
dormadekhin opened this issue May 17, 2018 · 6 comments
Closed

$response->getMessageId() return null #573

dormadekhin opened this issue May 17, 2018 · 6 comments

Comments

@dormadekhin
Copy link

I can not get the result of sending a message:

 $response  = Telegram::sendMessage([
           'chat_id' => $chat_id,
           'text' => 'test',
       ]) ;
  dump($response->getMessageId());

result:
null
I'm using Laravel 5.6

@Logicbloke
Copy link

$response["message_id"] works for me, but I'm not using Laravel.

@yongkyali
Copy link
Collaborator

you can try

$response->getMessage()->getMessageId()

@eric2100
Copy link

I can not get the result of sending a message:

 $response  = Telegram::sendMessage([
           'chat_id' => $chat_id,
           'text' => 'test',
       ]) ;
  dump($response->getMessageId());

result:
null
I'm using Laravel 5.6

me too.
i try
$response->getMessage()->getMessageId()
result:
null

laravel 6, irazasyed/telegram-bot-sdk master

@yongkyali
Copy link
Collaborator

@eric2100 Could you show $response content?

@eric2100
Copy link

@eric2100 Could you show $response content?

After I reinstalled the kit, it was normal and I didn't know how to solve it.
thank you.

@yongkyali
Copy link
Collaborator

I am closing this issue. Feel free to open this issue again if the problem still occurs.
I suggest you to use dev-develop branch since it's more updated. But it's still yet to be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants