mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update API
This commit is contained in:
parent
5aeab63384
commit
915c84c742
363 changed files with 1510 additions and 2262 deletions
|
|
@ -2,14 +2,11 @@
|
|||
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.methods.unpin_chat_message
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
|
|
@ -29,27 +26,26 @@ Method as object
|
|||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import UnpinChatMessage`
|
||||
- :code:`from aiogram.methods import UnpinChatMessage`
|
||||
- :code:`from aiogram.methods.unpin_chat_message import UnpinChatMessage`
|
||||
- alias: :code:`from aiogram.methods import UnpinChatMessage`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await UnpinChatMessage(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(UnpinChatMessage(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
return UnpinChatMessage(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue