aiogram/docs/api/methods/unban_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
895 B
ReStructuredText

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