mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Partial update examples.
This commit is contained in:
parent
b37763c23f
commit
06df482061
8 changed files with 24 additions and 91 deletions
|
|
@ -32,7 +32,7 @@ async def send_message(user_id: int, text: str) -> bool:
|
|||
:return:
|
||||
"""
|
||||
try:
|
||||
await bot.send_message(user_id, '<b>Hello, World!</b>')
|
||||
await bot.send_message(user_id, text)
|
||||
except exceptions.BotBlocked:
|
||||
log.error(f"Target [ID:{user_id}]: blocked by user")
|
||||
except exceptions.ChatNotFound:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue