Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
800 stars 340 forks source link

keyboard in getUpdates example not working #240

Closed xenogenesi closed 3 years ago

xenogenesi commented 3 years ago

Thanks for sharing!

Is the keyboard supposed to work? I can see the message correctly if is a private or group message but I don't see the keyboard. There's some limit in the getUpdates "mode"?

Another small thing only FYI, I revoked a token for a bot I wasn't using for months if not years, at the first run I got this message:

PHP Notice:  Undefined index: message in /var/local/misc/tmp/php/telegram-bot-php/vendor/eleirbag89/telegrambotphp/Telegram.php on line 1804
PHP Stack trace:
PHP   1. {main}() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:0
PHP   2. Telegram->ChatID() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:24
PHP Notice:  Trying to access array offset on value of type null in /var/local/misc/tmp/php/telegram-bot-php/vendor/eleirbag89/telegrambotphp/Telegram.php on line 1804
PHP Stack trace:
PHP   1. {main}() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:0
PHP   2. Telegram->ChatID() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:24
PHP Notice:  Trying to access array offset on value of type null in /var/local/misc/tmp/php/telegram-bot-php/vendor/eleirbag89/telegrambotphp/Telegram.php on line 1804
PHP Stack trace:
PHP   1. {main}() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:0
PHP   2. Telegram->ChatID() /var/local/misc/tmp/php/telegram-bot-php/src/getUpdates.php:24
xenogenesi commented 3 years ago

Nevermind, I had a custom keyboard already set in the past and had to hide that before.