From f4bf7d0ad722bae2feafdc64ed7b7f7403020c92 Mon Sep 17 00:00:00 2001 From: arbadacarba <63317640+arbadacarbaYK@users.noreply.github.com> Date: Thu, 30 May 2024 18:20:49 +0200 Subject: [PATCH] Update pixelateTG.py --- pixelateTG.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelateTG.py b/pixelateTG.py index 3b07d76..da3314d 100644 --- a/pixelateTG.py +++ b/pixelateTG.py @@ -142,12 +142,13 @@ def pixelate_faces(update: Update, context: CallbackContext) -> None: file.download(gif_path) processed_gif_path = process_gif(gif_path, session_id, str(uuid4()), context.bot) - context.bot.send_animation(chat_id=update.message.chat_id, animation=open(processed_gif_path, 'rb')) + context.bot.send_animation(chat_id=update.message.from_user.id, animation=open(processed_gif_path, 'rb')) else: update.message.reply_text('Please send either a photo or a GIF.') + def pixelate_command(update: Update, context: CallbackContext) -> None: if update.message.reply_to_message and update.message.reply_to_message.photo: session_id = str(uuid4())