How to handle the telegram bot api when the user passes only command “/say”

前端 未结 0 694
一个人的身影
一个人的身影 2021-02-02 12:37

If the user calls a command /weather [something], it will run the below code block.

bot.onText(/\\/[wW]eather(.+)/, (msg, match) => {

    bot.sendMessage(msg.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题