From b223c103dc5f233b4137739250a477dc95b68500 Mon Sep 17 00:00:00 2001 From: wrenfairbank Date: Mon, 29 Jun 2020 09:21:44 +0100 Subject: [PATCH] Fix cancel button --- telegram_gcloner/handlers/cancel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/telegram_gcloner/handlers/cancel.py b/telegram_gcloner/handlers/cancel.py index 7e80b16..6e39720 100644 --- a/telegram_gcloner/handlers/cancel.py +++ b/telegram_gcloner/handlers/cancel.py @@ -20,5 +20,8 @@ def cancel(update, context): if query.message.chat_id < 0 and \ (not query.message.reply_to_message or query.from_user.id != query.message.reply_to_message.from_user.id): - # query.message.edit_reply_markup(reply_markup=None) - query.message.delete() + alert_users(context, update.effective_user, 'invalid caller', query.data) + query.answer(text='哟呵', show_alert=True) + return + # query.message.edit_reply_markup(reply_markup=None) + query.message.delete()