fix delete callback

This commit is contained in:
bakatrouble 2024-06-03 14:01:45 +03:00
parent 393bd636b2
commit 5ca35922fc

View File

@ -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)