Skip to content

sponsoredMessage

sponsoredMessage#7dbf8673 flags:# recommended:flags.5?true can_report:flags.12?true random_id:bytes url:string title:string message:string entities:flags.1?Vector<MessageEntity> photo:flags.6?Photo media:flags.14?MessageMedia color:flags.13?PeerColor button_text:string sponsor_info:flags.7?string additional_info:flags.8?string min_display_duration:flags.15?int max_display_duration:flags.15?int = SponsoredMessage;

SponsoredMessage

Name Type Flag Default Description
flags # flag word —
recommended flags.5?true flags.5 —
can_report flags.12?true flags.12 —
random_id bytes — —
url string — —
title string — —
message string — —
entities flags.1?Vector flags.1 —
photo flags.6?Photo flags.6 —
media flags.14?MessageMedia flags.14 —
color flags.13?PeerColor flags.13 —
button_text string — —
sponsor_info flags.7?string flags.7 —
additional_info flags.8?string flags.8 —
min_display_duration flags.15?int flags.15 —
max_display_duration flags.15?int flags.15 —
Parameter Bit Meaning
recommended 5 Controlled by flags; present when this bit is set.
can_report 12 Controlled by flags; present when this bit is set.
entities 1 Controlled by flags; present when this bit is set.
photo 6 Controlled by flags; present when this bit is set.
media 14 Controlled by flags; present when this bit is set.
color 13 Controlled by flags; present when this bit is set.
sponsor_info 7 Controlled by flags; present when this bit is set.
additional_info 8 Controlled by flags; present when this bit is set.
min_display_duration 15 Controlled by flags; present when this bit is set.
max_display_duration 15 Controlled by flags; present when this bit is set.
from miniproto.raw.types import SponsoredMessage

Public access: miniproto.raw.types.SponsoredMessage.

SponsoredMessage

Schema sources