fix delete callback
This commit is contained in:
parent
393bd636b2
commit
5ca35922fc
@ -194,7 +194,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
|
|||||||
update.effective_message.reply_text('Not found')
|
update.effective_message.reply_text('Not found')
|
||||||
|
|
||||||
def handle_delete_callback(self, update: Update, ctx: CallbackContext):
|
def handle_delete_callback(self, update: Update, ctx: CallbackContext):
|
||||||
message_id = update.message.message_id
|
message_id = update.callback_query.message.message_id
|
||||||
try:
|
try:
|
||||||
msg = QueuedItem.objects.get(Q(message_id=message_id) | Q(message_ids_extra__contains=f'{message_id}'),
|
msg = QueuedItem.objects.get(Q(message_id=message_id) | Q(message_ids_extra__contains=f'{message_id}'),
|
||||||
config=self)
|
config=self)
|
||||||
|
Loading…
Reference in New Issue
Block a user