mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-17 16:06:17 +00:00
Пример Instance бота, разные команды
This commit is contained in:
9
olgram/utils/mix.py
Normal file
9
olgram/utils/mix.py
Normal 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
|
||||
Reference in New Issue
Block a user