========== Exceptions ========== Example: .. code-block:: python3 import asyncio from aiotgm.types import Message from aiotgm import Client, TelegramError bot = Client('') @bot.manage_message() async def foo(msg: Message): try: await bot.send_message(msg.chat.id, "Hello my friend.") except (TelegramError, TimeoutError) as e: print(e) .. autoexception:: apitele.TelegramError :members: :undoc-members: :show-inheritance: .. exception:: TimeoutError This `error `_ is raised when a request is not returned in 5 minutes.