2021-12-12 17:21:01 +02:00
|
|
|
#################
|
|
|
|
|
banChatSenderChat
|
|
|
|
|
#################
|
|
|
|
|
|
|
|
|
|
Returns: :obj:`bool`
|
|
|
|
|
|
|
|
|
|
.. automodule:: aiogram.methods.ban_chat_sender_chat
|
|
|
|
|
:members:
|
|
|
|
|
:member-order: bysource
|
|
|
|
|
:undoc-members: True
|
2023-07-04 00:39:02 +03:00
|
|
|
:exclude-members: model_config,model_fields
|
2021-12-12 17:21:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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`
|
|
|
|
|
|
|
|
|
|
With specific bot
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
result: bool = await bot(BanChatSenderChat(...))
|
|
|
|
|
|
|
|
|
|
As reply into Webhook in handler
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
return BanChatSenderChat(...)
|
2022-12-04 03:05:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
As shortcut from received object
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
|
|
|
|
- :meth:`aiogram.types.chat.Chat.ban_sender_chat`
|