mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Provide some actions from data types.
This commit is contained in:
parent
49961e5b2b
commit
5b87708049
6 changed files with 45 additions and 3 deletions
|
|
@ -549,7 +549,7 @@ class Bot(BaseBot):
|
|||
"""
|
||||
return await super(Bot, self).set_chat_description(chat_id, description)
|
||||
|
||||
async def pin_chat_message(self, chat_id: int, message_id: int, disable_notification: bool) -> bool:
|
||||
async def pin_chat_message(self, chat_id: int, message_id: int, disable_notification: bool = False) -> bool:
|
||||
"""
|
||||
Use this method to pin a message in a supergroup.
|
||||
The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue