mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
[3.x] Bot API 5.5 (#777)
* Re-generate API, cover changes * Added patchnotes
This commit is contained in:
parent
92ec44d8d2
commit
9ec689b562
22 changed files with 333 additions and 15 deletions
51
docs/api/methods/ban_chat_sender_chat.rst
Normal file
51
docs/api/methods/ban_chat_sender_chat.rst
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
#################
|
||||
banChatSenderChat
|
||||
#################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.ban_chat_sender_chat
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.ban_chat_sender_chat(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.ban_chat_sender_chat import BanChatSenderChat`
|
||||
- alias: :code:`from aiogram.methods import BanChatSenderChat`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await BanChatSenderChat(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(BanChatSenderChat(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return BanChatSenderChat(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue