Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buttonsActionHandler does not work #1

Closed
Swiftocrat opened this issue Jul 7, 2021 · 4 comments
Closed

buttonsActionHandler does not work #1

Swiftocrat opened this issue Jul 7, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@Swiftocrat
Copy link

When I trying to use buttons callback as it showed in example, I'm facing problem when bot can't reply to user. It seems because bot somehow forgets chat id. Example does not work too, actually.

@nerzh
Copy link
Owner

nerzh commented Jul 7, 2021

Hello, I fixed example.
Bot works normal, just on press button the update object does not have message

try update.message?.reply(text: update.callbackQuery?.data ?? "data not exist", bot: bot)

replace to

try update.callbackQuery?.message?.reply(text: update.callbackQuery?.data ?? "data not exist", bot: bot)

@Swiftocrat
Copy link
Author

Thank you, I will try

@Swiftocrat
Copy link
Author

Working

@nerzh
Copy link
Owner

nerzh commented Jul 7, 2021

Thank you, I will try

Thanks you, too

@nerzh nerzh added the documentation Improvements or additions to documentation label Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants