SponsoredMessage#
- class pyrogram.raw.types.SponsoredMessage#
A sponsored message.
Constructor of
SponsoredMessage
.- Details:
Layer:
198
ID:
4D93A990
- Parameters:
random_id (
bytes
) – Message IDurl (
str
) – Contains the URL to open when the user clicks on the sponsored message.title (
str
) – Contains the title of the sponsored message.message (
str
) – Sponsored messagebutton_text (
str
) – Label of the sponsored message button.recommended (
bool
, optional) – Whether the message needs to be labeled as “recommended” instead of “sponsored”can_report (
bool
, optional) – Whether this message can be reported as specified here ».entities (List of
MessageEntity
, optional) – Message entities for styled text in message.photo (
Photo
, optional) – If set, contains a custom profile photo bubble that should be displayed for the sponsored message, like for messages sent in groups.media (
MessageMedia
, optional) – If set, contains some media.color (
PeerColor
, optional) – If set, the sponsored message should use the message accent color » specified in color.sponsor_info (
str
, optional) – If set, contains additional information about the sponsor to be shown along with the message.additional_info (
str
, optional) – If set, contains additional information about the sponsored message to be shown along with the message.