Open falur opened 2 years ago
faced the same problem did you find a solution?
I did not find solution (
Learn the difference between the two types of Telegram Bot Keyboards: https://core.telegram.org/bots/api#keyboardbutton https://core.telegram.org/bots/api#inlinekeyboardbutton
What you want is probably to replace 'keyboard'
with 'inline_keyboard'
.
If not, then delete 'callback_data'
and catch the 'text'
with $botman->hears('Фотогалерея 🖼')
at the webhook. In case you use Laravel it's a good idea to use the internal __('') method to avoid text duplication.
Description:
Not working callback_data bot sends text
Steps To Reproduce: