aiogram/docs2/api/methods/set_chat_description.rst

51 lines
880 B
ReStructuredText
Raw Normal View History

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