aiogram/docs2/api/methods/get_chat.rst

46 lines
642 B
ReStructuredText
Raw Normal View History

#######
getChat
#######
Returns: :obj:`Chat`
.. automodule:: aiogram.methods.get_chat
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: Chat = await bot.get_chat(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_chat import GetChat`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import GetChat`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: Chat = await GetChat(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: Chat = await bot(GetChat(...))