Skip to content
Advertisement

longman telegram bot handle user input

I need to edit record in database from inline button.

  1. Bot send message to user with record text and add inline button actions for it (i.e. Edit, Delete etc.)
  2. User click button, from callback starts EditCommand with new conversation. but after first case next message dont call execute() EditCommand – conversation disappeared.

$query->getData() contains action and record ID like action=edit&id=3

how can I get user input after inline button click?

JavaScript

and then in EditCommand execute() triggered only once. I think because second message from user is not callback.

Advertisement

Answer

solved. conversation must created like

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement