commit
This commit is contained in:
parent
7e19a02e76
commit
9564a2333d
1 changed files with 10 additions and 0 deletions
10
app.js
10
app.js
|
@ -64,5 +64,15 @@ bot.command('truce', ctx => {
|
||||||
isTrue(message, 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
|
||||||
bot.launch();
|
bot.launch();
|
Loading…
Add table
Add a link
Reference in a new issue