This commit is contained in:
bakatrouble 2023-03-30 20:53:25 +03:00
parent cc7d8d0a86
commit e39e45b6ce

View File

@ -71,7 +71,7 @@ async def check_updates():
im.save(file, format='JPEG') im.save(file, format='JPEG')
im.seek(0) im.seek(0)
await bot.send_photo(int(os.environ['SEND_CHAT']), await bot.send_photo(int(os.environ['SEND_CHAT']),
file_resized, file,
caption=caption) caption=caption)
await redis.sadd('e621:sent', post.id) await redis.sadd('e621:sent', post.id)
except exceptions.TelegramAPIError as e: except exceptions.TelegramAPIError as e: