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 30, 2024
1 parent aac3be4 commit f4bf7d0
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 @@ -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())
Expand Down

0 comments on commit f4bf7d0

Please sign in to comment.