mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
44 lines
708 B
ReStructuredText
44 lines
708 B
ReStructuredText
##############
|
|
pinChatMessage
|
|
##############
|
|
|
|
Returns: :obj:`bool`
|
|
|
|
.. automodule:: aiogram.methods.pin_chat_message
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: bool = await bot.pin_chat_message(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.pin_chat_message import PinChatMessage`
|
|
- alias: :code:`from aiogram.methods import PinChatMessage`
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: bool = await bot(PinChatMessage(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return PinChatMessage(...)
|