SponsoredMessage#
- class pyrogram.types.SponsoredMessage#
Describes a sponsored message.
- Parameters:
random_id (
bytes
) – Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.url (
str
) – ad urltitle (
str
) – Title of the sponsored message.content (
str
) – sponsored message.button_text (
str
) – Text for the message action button.entities (List of
MessageEntity
, optional) – special entities that appear in the text.photo (
Photo
, optional) – sponsored message photois_recommended (
bool
, optional) – True, if the message needs to be labeled as “recommended” instead of “sponsored”.can_be_reported (
bool
, optional) – True, if the message can be reported to Telegram moderators throughreport_chat_sponsored_message()
.color (
ChatColor
, optional) – Identifier of the accent color for title, button text and message background.sponsor_info (
str
, optional) – Information about the sponsor of the message.additional_info (
str
, optional) – If non-empty, additional information about the sponsored message to be shown along with the message.