This commit is contained in:
Lukian LEIZOUR 2022-11-19 13:02:48 +01:00
parent 7e19a02e76
commit 9564a2333d

10
app.js
View file

@ -64,5 +64,15 @@ bot.command('truce', ctx => {
isTrue(message, ctx)
})
bot.command('chatInfo', ctx => {
console.log(ctx.chat.id)
})
bot.command('suggest', ctx => {
bot.telegram.sendMessage(-1001845876532, 'New suggestion of ' + ctx.message.from.username + " : " + ctx.message.text, {})
bot.telegram.sendMessage(ctx.chat.id, 'Your suggestion has been sent to the channel t.me/+SrzC81CGyusyODNk', {})
console.log('--> sent suggestion message to the channel')
})
//bot launch
bot.launch();