diff --git a/pixelateTG.py b/pixelateTG.py index 450d334..cd7ee86 100644 --- a/pixelateTG.py +++ b/pixelateTG.py @@ -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): @@ -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