Interface VideoMessageAdvertisement

Describes an advertisent to be shown while a video from a message is watched.

interface VideoMessageAdvertisement {
    @type: "videoMessageAdvertisement";
    additional_info: string;
    can_be_reported?: boolean;
    max_display_duration: number;
    min_display_duration: number;
    sponsor: AdvertisementSponsor;
    text: string;
    title: string;
    unique_id: number;
}

Properties

@type: "videoMessageAdvertisement"
additional_info: string

If non-empty, additional information about the sponsored message to be shown along with the message.

can_be_reported?: boolean

True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement.

max_display_duration: number

The maximum amount of time the advertisement must be dispalyed before it must be automatically hidden, in seconds.

min_display_duration: number

The minimum amount of time the advertisement must be dispalyed before it can be hidden by the user, in seconds.

Information about the sponsor of the advertisement.

text: string

Text of the advertisement.

title: string

Title of the sponsored message.

unique_id: number

Unique identifier of this result.