UpdatePinnedChannelMessages

class pyrogram.raw.types.UpdatePinnedChannelMessages

Messages were pinned/unpinned in a channel/supergroup

Constructor of Update.

Details:
  • Layer: 223

  • ID: 5BB98608

Parameters:
  • channel_id (int 64-bit) – Channel ID

  • messages (List of int 32-bit) – Messages

  • pts (int 32-bit) – Event count after generation

  • pts_count (int 32-bit) – Number of events that were generated

  • pinned (bool, optional) – Whether the messages were pinned or unpinned

TL Schema

updatePinnedChannelMessages#5bb98608
flags:#
pinned:flags.0?true
channel_id:long
messages:Vector<int>
pts:int
pts_count:int

= Update

Parameter Tree

UpdatePinnedChannelMessages
├── pinnedtrue (optional)
├── channel_idlong
├── messagesVector < int >
├── ptsint
└── pts_countint

Example

UpdatePinnedChannelMessages(
    channel_id=0,
    messages=[0],
    pts=0,
    pts_count=0,
)