aiogram/docs/api/methods/ban_chat_sender_chat.rst
Alex Root Junior 9ec689b562
[3.x] Bot API 5.5 (#777)
* Re-generate API, cover changes

* Added patchnotes
2021-12-12 17:21:01 +02:00

51 lines
873 B
ReStructuredText

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