V
Size: a a a
V
V

V
V
startScene.leave(async ctx => {
console.log('---------- Leave', ctx.session.__scenes);
return ctx.reply(cnt.strings.welcome);
});V
V
V
V
Я согласенV
V
JD
С

Return type of public static method from exported class has or is using name 'Markup' from external module «…/node_modules/telegraf/typings/markup" but cannot be named.
V
V
V
ee
V
V
V
JD
const users = {}
bot.action('confirm', async ctx => {
users['id'+ctx.from.id] = 1
await ctx.answerCbQuery('Молодец!',true)
return ctx.deleteMessage()
})
bot.use((ctx,next) => {
if (!ctx.from || users['id'+ctx.from.id]) return next()
return ctx.reply('Нажми кнопку согласен',{reply_markup:{inline_keyboard:[[{text:'Согласен', callback_data:'confirm'}]]}})
})