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"))
// It will send message when msg startsWith /start command
// Simple
bot.start("Hello welcome!") // you can also pass sendMessage options in second param
// You can use functions also
bot.start((msg, util)=> {
// Do here which you want
})
Generated using TypeDoc
Example