forked from Pavel_Durov/python_bot
fix пост-делишон
This commit is contained in:
parent
aa3ea439fe
commit
56450bc566
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user