Partial update examples.

This commit is contained in:
Alex Root Junior 2018-07-14 16:28:20 +03:00
parent b37763c23f
commit 06df482061
8 changed files with 24 additions and 91 deletions

View file

@ -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: