fix пост-делишон
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-25 14:28:14 +10:00
parent aa3ea439fe
commit 56450bc566

View File

@ -111,5 +111,10 @@ async def clean_posts(chat_id, type=None, max_id=None):
postcleaner.del_post(chat_id=p['chat_id'], msg_id=p['msg_id'])
#### TODO проверить админит ли бот
await bot.delete_message( chat_id=p['chat_id'], message_id=p['msg_id'], )
try:
await bot.delete_message( chat_id=p['chat_id'], message_id=p['msg_id'], )
except Exception as e:
logging.error('ошибка удаления поста-на-удаление')
logging.error(e)