How to run Command using TPY Code?

To run command you need to use Bot.runCommand() function


Using this code for running a command from a command

Make command as /command

options = "my options" # you can use json here
bot.replyText(, "running next command")
Bot.runCommand("/nextCommand", options)

Again make new command as /nextCommand

bot.replyText(, "Success")

Last updated