mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add sphinx with converting part of pages
This commit is contained in:
parent
3aa68a93d1
commit
f68960ca87
192 changed files with 6123 additions and 350 deletions
46
docs2/source/api/methods/get_chat.rst
Normal file
46
docs2/source/api/methods/get_chat.rst
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#######
|
||||
getChat
|
||||
#######
|
||||
|
||||
Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.
|
||||
|
||||
Returns: :obj:`Chat`
|
||||
|
||||
.. automodule:: aiogram.api.methods.get_chat
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Chat = await bot.get_chat(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import GetChat`
|
||||
- :code:`from aiogram.api.methods import GetChat`
|
||||
- :code:`from aiogram.api.methods.get_chat import GetChat`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Chat = await GetChat(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Chat = await bot(GetChat(...))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue