MadelineProtoDocs/docs/API_docs/constructors/updatePinnedMessages.md
2024-05-01 14:53:46 +02:00

1.1 KiB

title description nav_exclude image
updatePinnedMessages Some messages were pinned in a chat true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updatePinnedMessages

Back to constructors index

Some messages were pinned in a chat

Attributes:

Name Type Required Description
pinned Bool Optional Whether the messages were pinned or unpinned
peer long Yes Peer
messages Array of int Yes Message IDs
pts int Yes Event count after generation
pts_count int Yes Number of events that were generated

Type: Update

Example:

$updatePinnedMessages = ['_' => 'updatePinnedMessages', 'pinned' => Bool, 'peer' => long, 'messages' => [int, int], 'pts' => int, 'pts_count' => int];