stories.IncrementStoryViews

class pyrogram.raw.functions.stories.IncrementStoryViews

Increment the view counter of one or more stories.

Details:
  • Layer: 223

  • ID: B2028AFB

Parameters:
  • peer (InputPeer) – Peer where the stories were posted.

  • id (List of int 32-bit) – IDs of the stories (maximum 200 at a time).

Returns:

bool

TL Schema

stories.incrementStoryViews#b2028afb
peer:InputPeer
id:Vector<int>

= Bool

Parameter Tree

IncrementStoryViews
├── 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(
    IncrementStoryViews(
        peer=await app.resolve_peer(chat_id),
        id=[0],
    )
)