Advertisement
Guest User

Untitled

a guest
Aug 13th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. try:
  2.     await download_photo(user_id, message.photo[-1], quantity_sended_photos)
  3. except TimeoutError:
  4.     await message.answer('Ошибка загрузки фото, повтори попытку...')
  5.     await remove_photo(user_id, quantity_sended_photos)
  6.  
  7.     await message.answer('Выбери один из пресетов')  # FIXME: цепани клавиатуру с выбором пресета
  8.     redactor.add_filter(user_id, quantity_sended_photos)
  9.     redacted_photo_path = f'data/photos/{user_id}_{quantity_sended_photos}_redacted.jpg'
  10.     await message.answer_photo(redacted_photo_path, 'rb')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement