MadelineProtoDocs/old_docs/API_docs_v40/constructors/updateChatPinnedMessage.md

1.3 KiB

title description image
updateChatPinnedMessage A message was pinned in a [legacy group](https://core.telegram.org/api/channel). This update is also typically emitted as an [updateNewChannelMessage](updateNewChannelMessage.md) with [messageService](messageService.md). 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 updateNewChannelMessage 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}