Prepare for Bot API 6.8

This commit is contained in:
Alex Root Junior 2023-08-14 22:44:36 +03:00
parent 577b44cdc1
commit 81b6465340
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
26 changed files with 374 additions and 27 deletions

View file

@ -165,6 +165,14 @@ Updating messages
stop_message_live_location
stop_poll
Upcoming update
===============
.. toctree::
:maxdepth: 1
unpin_all_general_forum_topic_messages
Inline mode
===========

View file

@ -0,0 +1,51 @@
#################################
unpinAllGeneralForumTopicMessages
#################################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.unpin_all_general_forum_topic_messages
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.unpin_all_general_forum_topic_messages(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.unpin_all_general_forum_topic_messages import UnpinAllGeneralForumTopicMessages`
- alias: :code:`from aiogram.methods import UnpinAllGeneralForumTopicMessages`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(UnpinAllGeneralForumTopicMessages(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return UnpinAllGeneralForumTopicMessages(...)
As shortcut from received object
--------------------------------
- :meth:`aiogram.types.chat.Chat.unpin_all_general_forum_topic_messages`