From 5b2d449a741d4c05cb52c9ad43847191721b85ed Mon Sep 17 00:00:00 2001 From: arbadacarba <63317640+arbadacarbaYK@users.noreply.github.com> Date: Sun, 26 May 2024 04:07:22 +0200 Subject: [PATCH] Update pixelateTG.py --- pixelateTG.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelateTG.py b/pixelateTG.py index a6070b0..4acc306 100644 --- a/pixelateTG.py +++ b/pixelateTG.py @@ -190,7 +190,7 @@ def button_callback(update: Update, context: CallbackContext) -> None: if query.data.startswith('cancel'): del context.user_data[session_id] # Delete session data - query.edit_message_reply_markup(reply_markup=None) # Remove the message containing the keyboard + query.message.delete() # Remove the message containing the keyboard return processed_path = None @@ -213,6 +213,7 @@ def button_callback(update: Update, context: CallbackContext) -> None: if processed_path: context.bot.send_photo(chat_id=query.message.chat_id, photo=open(processed_path, 'rb')) + def main() -> None: updater = Updater(TOKEN)