1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-17 16:06:17 +00:00

Пример Instance бота, разные команды

This commit is contained in:
mihalin
2021-06-29 15:29:41 +03:00
parent 4e70ebf32c
commit d738da2fa9
15 changed files with 221 additions and 33 deletions

9
olgram/utils/mix.py Normal file
View File

@@ -0,0 +1,9 @@
from aiogram.types import Message
from aiogram.utils.exceptions import TelegramAPIError
async def try_delete_message(message: Message):
try:
await message.delete()
except TelegramAPIError:
pass