messages.unpinAllMessages

Unpin all pinned messages

 Method schema is available as of layer 148. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer InputPeer Chat where to unpin
top_msg_id flags.0?int Forum topic where to unpin
saved_peer_id flags.1?InputPeer If set, must be equal to the ID of a monoforum topic, and will unpin all messages pinned in the passed monoforum topic.

Result

messages.AffectedHistory

Both users and bots can use this method

Possible errors

Code Type Description
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 CHAT_NOT_MODIFIED No changes were made to chat information because the new information you passed is identical to the current information.
400 INPUT_USER_DEACTIVATED The specified user was deleted.
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

Forums

Telegram allows creating forums with multiple distinct topics.

Monoforum

Telegram supports direct messages to channels, which can also be used to suggest (even paid) channel posts.

Pinned messages

Telegram allows pinning multiple messages on top of a specific chat.