stories.GetPinnedStories

class pyrogram.raw.functions.stories.GetPinnedStories

Fetch the stories pinned on a peer’s profile.

Details:
  • Layer: 223

  • ID: 5821A5DC

Parameters:
  • peer (InputPeer) – Peer whose pinned stories should be fetched

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here

  • limit (int 32-bit) – Maximum number of results to return, see pagination

Returns:

stories.Stories

TL Schema

stories.getPinnedStories#5821a5dc
peer:InputPeer
offset_id:int
limit:int

= stories.Stories

Parameter Tree

GetPinnedStories
├── 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
├── offset_idint
└── limitint

Example

await app.invoke(
    GetPinnedStories(
        peer=await app.resolve_peer(chat_id),
        offset_id=0,
        limit=0,
    )
)