sponsoredMessage

A sponsored message.

sponsoredMessage#bdedf566 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 color:flags.13?PeerColor button_text:string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
recommended flags.5?true Whether the message needs to be labeled as "recommended" instead of "sponsored"
can_report flags.12?true Whether this message can be reported as specified here ».
random_id bytes Message ID
url string Contains the URL to open when the user clicks on the sponsored message.
title string Contains the title of the sponsored message.
message string Sponsored message
entities flags.1?Vector<MessageEntity> Message entities for styled text in message.
photo flags.6?Photo If set, contains a custom profile photo bubble that should be displayed for the sponsored message, like for messages sent in groups.
color flags.13?PeerColor If set, the sponsored message should use the message accent color » specified in color.
button_text string Label of the sponsored message button.
sponsor_info flags.7?string If set, contains additional information about the sponsor to be shown along with the message.
additional_info flags.8?string If set, contains additional information about the sponsored message to be shown along with the message.

Type

SponsoredMessage

Related pages

Sponsored messages

Styled text with message entities

How to create styled text with message entities

Accent colors

Telegram users and channels can change the accent color and background pattern of their profile page and their messages!