stories.TogglePinnedToTop

class pyrogram.raw.functions.stories.TogglePinnedToTop

Pin some stories to the top of the profile, see here » for more info.

Details:
  • Layer: 223

  • ID: B297E9B

Parameters:
  • peer (InputPeer) – Peer where to pin stories.

  • id (List of int 32-bit) – IDs of the stories to pin (max stories_pinned_to_top_count_max).

Returns:

bool

TL Schema

stories.togglePinnedToTop#b297e9b
peer:InputPeer
id:Vector<int>

= Bool

Parameter Tree

TogglePinnedToTop
├── 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
└── idVector < int >

Example

await app.invoke(
    TogglePinnedToTop(
        peer=await app.resolve_peer(chat_id),
        id=[0],
    )
)