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 26, 2024
1 parent 2d071c2 commit 5b2d449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pixelateTG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 5b2d449

Please sign in to comment.