mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
* Remove warnings about pytest asyncio mode * Update Bot API to 6.4 * Bump version * Added changelog * Update translations
44 lines
791 B
ReStructuredText
44 lines
791 B
ReStructuredText
######################
|
|
closeGeneralForumTopic
|
|
######################
|
|
|
|
Returns: :obj:`bool`
|
|
|
|
.. automodule:: aiogram.methods.close_general_forum_topic
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: bool = await bot.close_general_forum_topic(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.close_general_forum_topic import CloseGeneralForumTopic`
|
|
- alias: :code:`from aiogram.methods import CloseGeneralForumTopic`
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: bool = await bot(CloseGeneralForumTopic(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return CloseGeneralForumTopic(...)
|