TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.07k stars 324 forks source link

How to get message from webhook request ? #294

Closed abohovhannisyan closed 3 years ago

abohovhannisyan commented 3 years ago

$bot->on(function (\TelegramBot\Api\Types\Update $update) use ($bot) { $message = $update->getMessage();

message is empty

MyZik commented 3 years ago

Do you want to get the Message object or Message text, id or something else?