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 0c74fc4 commit 6d58b52
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 @@ -61,6 +61,8 @@ def pixelate_faces(update: Update, context: CallbackContext) -> None:

context.user_data[session_id]['photo_path'] = photo_path
context.user_data[session_id]['user_id'] = update.message.from_user.id
# Delete the original picture from the chat
update.message.delete()


def process_image(photo_path, user_id, file_id, bot):
Expand Down Expand Up @@ -321,7 +323,6 @@ def button_callback(update: Update, context: CallbackContext) -> None:
query.edit_message_reply_markup(reply_markup=query.message.reply_markup)



def main() -> None:
updater = Updater(TOKEN)
dispatcher = updater.dispatcher
Expand Down

0 comments on commit 6d58b52

Please sign in to comment.