botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
83 stars 90 forks source link

An error during sending buttons with carousel by telegram channel #1017

Closed anton-iskryzhytskyi closed 3 years ago

anton-iskryzhytskyi commented 4 years ago

Describe the bug An error appears during sending buttons with telegram module image

To Reproduce Steps to reproduce the behavior:

  1. Go to studio/botname/content
  2. Create a carousel with buttons like on the picture image
  3. Add a telegram bot configurations
  4. Add a stable module Channel Telegram on /admin/modules page
  5. Configure action response with the carousel
  6. Trigger the action by sending message with Telegram messenger
  7. Go to server console and see the error image

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context According to telegram docs about inline keyboard, one optional property of inline keyboard button must be used.

anton-iskryzhytskyi commented 4 years ago

PR https://github.com/botpress/botpress/pull/3453

anton-iskryzhytskyi commented 4 years ago

And additional comment, also the inline button click are not handled due error that ctx.message is not exists, but it is possible to use ctx.callback_query or ctx.callback_query.message instead of ctx.message, and ctx.callback_query.data instead of ctx.message.text So, I also created a PR https://github.com/botpress/botpress/pull/3454

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

J-FMartin commented 3 years ago

Hi - fixed, we will close this, please reopen if need be.