From 1047a076516025201d291c1bb470cee1fcdb7794 Mon Sep 17 00:00:00 2001 From: cheetah Date: Tue, 5 Nov 2019 20:28:28 +0100 Subject: [PATCH] modified: telegrambot/index.js --- telegrambot/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()