Optional
// use function inside leaveechoScene.leave((msg, util)=> {msg.send("Entered in echo scene")})// Or directly pass stringechoScene.leave("Entered in echo scene") Copy
// use function inside leaveechoScene.leave((msg, util)=> {msg.send("Entered in echo scene")})// Or directly pass stringechoScene.leave("Entered in echo scene")
bot.send(-100123456789, "Hello");or you can use directly without giving chatid by using context object of your listener Copy
bot.send(-100123456789, "Hello");or you can use directly without giving chatid by using context object of your listener
bot.on("message", ctx => ctx.send("Hello")) Copy
bot.on("message", ctx => ctx.send("Hello"))
Generated using TypeDoc
Example