From 5ca35922fcb2b1807dae13a919ddea474fe47423 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 3 Jun 2024 14:01:45 +0300 Subject: [PATCH] fix delete callback --- bots/modules/channel_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/channel_helper.py b/bots/modules/channel_helper.py index 6946a70..8cdec0c 100644 --- a/bots/modules/channel_helper.py +++ b/bots/modules/channel_helper.py @@ -194,7 +194,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig): update.effective_message.reply_text('Not found') def handle_delete_callback(self, update: Update, ctx: CallbackContext): - message_id = update.message.message_id + message_id = update.callback_query.message.message_id try: msg = QueuedItem.objects.get(Q(message_id=message_id) | Q(message_ids_extra__contains=f'{message_id}'), config=self)