AG
bot.on('text', async ctx => {
const { text } = ctx.message
if ( ... ) {
...
}
})
Size: a a a
ЛХ
bot.on('text', async ctx => {
const { text } = ctx.message
if ( ... ) {
...
}
})
AG
bot.on('text', async ctx => {
const { text } = ctx.message
if ( ... ) {
...
}
})
ЛХ
if (ctx.message.text !== undefined)
AG
AG
ЛХ
ЛХ
ЛХ
cosnt msg = ctx.message
console.log(msg.caption
)AG
AG
cosnt msg = ctx.message
console.log(msg.caption
)ЛХ
await ctx.reply('Some text')
AG
await ctx.reply('Some text')
ЛХ
await bot.telegram.sendMessage(ctx.chat.id, text)
можно простоawait ctx.reply(text)
и масса другихAG
AG
ЛХ
try {} catch {}
или bot.catch(error => console.error)
AV