MadelineProtoDocs/docs/API_docs/constructors/updateChatPinnedMessage.md

1.1 KiB

title description image
updateChatPinnedMessage A message was pinned in a [legacy group](https://core.telegram.org/api/channel) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateChatPinnedMessage

Back to constructors index

A message was pinned in a legacy group
This update is also typically emitted as an updateNewMessage with messageService.

Attributes:

Name Type Required Description
chat_id int Yes Legacy group ID
id int Yes ID of pinned message
version int Yes Used to reorder updates in legacy groups

Type: Update

Example:

$updateChatPinnedMessage = ['_' => 'updateChatPinnedMessage', 'chat_id' => int, 'id' => int, 'version' => int];

Or, if you're into Lua:

updateChatPinnedMessage={_='updateChatPinnedMessage', chat_id=int, id=int, version=int}