You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a inlineKeyboard where I want to have a back button.
For every command, I know where I came from, so I can recall the callback. But not for my main commands.In that case I want to use /customcommand.
I can do it with CallbackqueryCommand, but then I have to program the command twice.
Is there a possibility to execute the /customcommand from my default commands?
And part 2 of this question?
I have a lot of Callbackquerys, which means a lot of code, and it isn't logic at all at the moment (long switch case atm), so I want to create multiple CallbackqueryCommands. Is that possible?
What is the best way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey
I have a inlineKeyboard where I want to have a back button.
For every command, I know where I came from, so I can recall the callback. But not for my main commands.In that case I want to use /customcommand.
I can do it with CallbackqueryCommand, but then I have to program the command twice.
Is there a possibility to execute the /customcommand from my default commands?
And part 2 of this question?
I have a lot of Callbackquerys, which means a lot of code, and it isn't logic at all at the moment (long switch case atm), so I want to create multiple CallbackqueryCommands. Is that possible?
What is the best way to do this?
Beta Was this translation helpful? Give feedback.
All reactions