-
I have an inline keyboard (button) and when you click on it there should appear a list of options, again inline keyboard which live on /list command |
Beta Was this translation helpful? Give feedback.
Answered by
jsstrn
Jul 26, 2021
Replies: 2 comments 2 replies
-
As far as I know, you cannot do that. Instead, have them both call the same handler: const handleMyCommand = (ctx) => {...}
bot.command('my-command', handleMyCommand)
bot.action('my-action', handleMyCommand) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Raduc4
-
I'm doing exactly this but for some weird reasons after a button action callback gets called once, it never gets called again. Any idea what can be responsible for this?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I know, you cannot do that. Instead, have them both call the same handler: