Function pin_chat_message

Source
pub async fn pin_chat_message(
    chat_id: i64,
    message_id: i64,
    disable_notification: bool,
    only_for_self: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

Pins a message in a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel

ยงArguments

  • chat_id - Identifier of the chat
  • message_id - Identifier of the new pinned message
  • disable_notification - Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats
  • only_for_self - Pass true to pin the message only for self; private chats only
  • client_id - The client id to send the request to