[3.x] Bot API 5.5 (#777)

* Re-generate API, cover changes

* Added patchnotes
This commit is contained in:
Alex Root Junior 2021-12-12 17:21:01 +02:00 committed by GitHub
parent 92ec44d8d2
commit 9ec689b562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 333 additions and 15 deletions

View 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(...)

View file

@ -54,6 +54,8 @@ Available methods
restrict_chat_member
promote_chat_member
set_chat_administrator_custom_title
ban_chat_sender_chat
unban_chat_sender_chat
set_chat_permissions
export_chat_invite_link
create_chat_invite_link

View file

@ -0,0 +1,51 @@
###################
unbanChatSenderChat
###################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.unban_chat_sender_chat
:members:
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.unban_chat_sender_chat(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.unban_chat_sender_chat import UnbanChatSenderChat`
- alias: :code:`from aiogram.methods import UnbanChatSenderChat`
In handlers with current bot
----------------------------
.. code-block:: python
result: bool = await UnbanChatSenderChat(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(UnbanChatSenderChat(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return UnbanChatSenderChat(...)