Skip to content

Commit

Permalink
Update pixelateTG.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arbadacarbaYK authored May 24, 2024
1 parent a776099 commit a092e16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pixelateTG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a092e16

Please sign in to comment.