mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update API
This commit is contained in:
parent
5aeab63384
commit
915c84c742
363 changed files with 1510 additions and 2262 deletions
|
|
@ -2,14 +2,11 @@
|
|||
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.methods.get_chat
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
|
|
@ -29,21 +26,20 @@ Method as object
|
|||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import GetChat`
|
||||
- :code:`from aiogram.methods import GetChat`
|
||||
- :code:`from aiogram.methods.get_chat import GetChat`
|
||||
- alias: :code:`from aiogram.methods import GetChat`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: Chat = await GetChat(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: Chat = await bot(GetChat(...))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue