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 chatmessage_id- Identifier of the new pinned messagedisable_notification- Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chatsonly_for_self- Pass true to pin the message only for self; private chats onlyclient_id- The client id to send the request to