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

Inline Keyboard show_alert appears to be broken? #384

Closed
Bobo-amg opened this issue Jul 5, 2024 · 5 comments
Closed

Inline Keyboard show_alert appears to be broken? #384

Bobo-amg opened this issue Jul 5, 2024 · 5 comments

Comments

@Bobo-amg
Copy link

Bobo-amg commented Jul 5, 2024

I'm having trouble using the show_alert option when editing an inline keyboard. Regardless of either true/false, the dialog answer still appears in the client.

This is shown when using your "examples/editinlinekeyboard.json" example. Along with this is an error message relating to msg.payload.content.text with the following error message "TypeError: Cannot create property 'text' on boolean 'false'"

Cheers
Bob

@windkh
Copy link
Owner

windkh commented Jul 5, 2024

Thanks for reporting. I guess the callback_query message was somehow changed by telegram in the passt.
I adapted the example

@windkh windkh closed this as completed Jul 5, 2024
windkh pushed a commit that referenced this issue Jul 5, 2024
@Bobo-amg
Copy link
Author

Bobo-amg commented Jul 6, 2024

Thanks, the error is fixed. However I'm still not seeing a difference using show_alert in your example. True or False, the reply still gets returned to the client (ie FOO NO).

@windkh
Copy link
Owner

windkh commented Jul 6, 2024

That depends on your client app. On my desktop telegram program a popup shows up in the middle of the screen with the text in it.

@Bobo-amg
Copy link
Author

Bobo-amg commented Jul 6, 2024

But shouldn't you be able to turn off ALL replies from the bot using show_alert? I thought that is what its for.

@windkh
Copy link
Owner

windkh commented Jul 7, 2024

Well, please read the offcial documentation about show_alert. The behaviour is all up to telegram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants