From a092e16219d289fad9d5d3d0e4f391bd21c15cb8 Mon Sep 17 00:00:00 2001 From: arbadacarba <63317640+arbadacarbaYK@users.noreply.github.com> Date: Sat, 25 May 2024 00:28:23 +0200 Subject: [PATCH] Update pixelateTG.py --- pixelateTG.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pixelateTG.py b/pixelateTG.py index 136cd73..fad777b 100644 --- a/pixelateTG.py +++ b/pixelateTG.py @@ -316,7 +316,10 @@ 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')) - query.message.delete() # Remove the original message after successful processing for einzie + + # Keep the keyboard visible by editing the original message's markup + query.edit_message_reply_markup(reply_markup=query.message.reply_markup) + def main() -> None: