mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add sphinx with converting part of pages
This commit is contained in:
parent
3aa68a93d1
commit
f68960ca87
192 changed files with 6123 additions and 350 deletions
52
docs2/source/api/methods/unpin_chat_message.rst
Normal file
52
docs2/source/api/methods/unpin_chat_message.rst
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
################
|
||||
unpinChatMessage
|
||||
################
|
||||
|
||||
Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.api.methods.unpin_chat_message
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.unpin_chat_message(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import UnpinChatMessage`
|
||||
- :code:`from aiogram.api.methods import UnpinChatMessage`
|
||||
- :code:`from aiogram.api.methods.unpin_chat_message import UnpinChatMessage`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await UnpinChatMessage(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot(UnpinChatMessage(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
return UnpinChatMessage(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue