ReportResultChooseOption

class pyrogram.raw.types.ReportResultChooseOption

The user must choose one of the following options, and then messages.report must be re-invoked, passing the option’s option identifier to messages.report.option.

Constructor of ReportResult.

Details:
  • Layer: 223

  • ID: F0E4E0B6

Parameters:
  • title (str) – Title of the option popup

  • options (List of MessageReportOption) – Available options, rendered as menu entries.

Functions:

This object can be returned by 2 functions.

messages.Report

Report a message in a chat for violation of telegram's Terms of Service

stories.Report

Report a story.

TL Schema

reportResultChooseOption#f0e4e0b6
title:string
options:Vector<MessageReportOption>

= ReportResult

Parameter Tree

ReportResultChooseOption
├── titlestring
└── optionsVector < MessageReportOption >
├── textstring
└── optionbytes

Example

ReportResultChooseOption(
    title="text",
    options=[
            MessageReportOption(
                text="Open",
                option=b"data"
            )
        ],
)