How to create Next command handler?

You can make Next Command handler with Bot.handleNextCommand() function

Example

/demohandler

bot.replyText(
     chat_id= message.chat.id, 
     text= "demo handler"
)
Bot.handleNextCommand("/command", "options") # in options you can use json

/command

bot.replyText(message.chat.id, "handler is working")

Last updated