pub async fn unpin_all_chat_messages(
chat_id: i64,
client_id: i32,
) -> Result<(), Error>Expand description
Removes all pinned messages from 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 chatclient_id- The client id to send the request to