diff --git a/telegrambot/index.js b/telegrambot/index.js index b5ea195..94526e6 100644 --- a/telegrambot/index.js +++ b/telegrambot/index.js @@ -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() \ No newline at end of file +bot.launch()