stories.Report

class pyrogram.raw.functions.stories.Report

Report a story.

Details:
  • Layer: 227

  • ID: 19D8EB45

Parameters:
  • peer (InputPeer) – The peer that uploaded the story.

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

  • option (bytes) – Menu option, intially empty

  • message (str) – Comment for report moderation

Returns:

ReportResult

TL Schema

stories.report#19d8eb45
peer:InputPeer
id:Vector<int>
option:bytes
message:string

= ReportResult

Parameter Tree

Report
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── id → Vector < int >
├── option → bytes
└── message → string

Example

await app.invoke(
    Report(
        peer=await app.resolve_peer(chat_id),
        id=[0],
        option=b"data",
        message="Hello",
    )
)