aiogram/docs2/api/methods/set_chat_title.rst

51 lines
814 B
ReStructuredText
Raw Normal View History

############
setChatTitle
############
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_chat_title
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_chat_title(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_chat_title import SetChatTitle`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import SetChatTitle`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: bool = await SetChatTitle(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: bool = await bot(SetChatTitle(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
return SetChatTitle(...)