modified: telegrambot/index.js

master
cheetah 5 years ago
parent 764cd9860b
commit 1047a07651

@ -353,8 +353,8 @@ angebotCodeStage.enter(async (ctx) => {
ctx.session.codeMsg = codeMsg.message_id
})
angebotCodeStage.leave(async (ctx) => {
if (!!ctx.session.codeMsg)
await ctx.deleteMessage(ctx.session.codeMsg)
// if (!!ctx.session.codeMsg)
// await ctx.deleteMessage(ctx.session.codeMsg)
})
angebotCodeStage.action('abort', async (ctx) => {
await ctx.replyWithChatAction('typing')
@ -408,4 +408,4 @@ stage.register(angebotCodeStage)
bot.use(stage.middleware())
bot.command('start', startFunc)
bot.command('settings', (ctx) => ctx.scene.enter('setup'))
bot.launch()
bot.launch()

Loading…
Cancel
Save