Re-generate API, cover changes

This commit is contained in:
Alex Root Junior 2021-12-12 16:52:31 +02:00
parent 92ec44d8d2
commit ff578e68c5
20 changed files with 331 additions and 14 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(...)