messages.UpdatePinnedForumTopic

class pyrogram.raw.functions.messages.UpdatePinnedForumTopic

{schema}

Details:
  • Layer: 223

  • ID: 175DF251

Parameters:
  • peer (InputPeer)

  • topic_id (int 32-bit)

  • pinned (bool)

Returns:

Updates

TL Schema

messages.updatePinnedForumTopic#175df251
peer:InputPeer
topic_id:int
pinned:Bool

= Updates

Parameter Tree

UpdatePinnedForumTopic
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── topic_idint
└── pinnedBool

Example

await app.invoke(
    UpdatePinnedForumTopic(
        peer=await app.resolve_peer(chat_id),
        topic_id=0,
        pinned=True,
    )
)