SponsoredMessage
- class pyrogram.raw.types.SponsoredMessage
A sponsored message.
Constructor of
SponsoredMessage
.- Details:
Layer:
194
ID:
4D93A990
- Parameters:
random_id (
bytes
) – Message IDurl (
str
)title (
str
)message (
str
) – Sponsored messagebutton_text (
str
) – Text of the sponsored message button.recommended (
bool
, optional) – Whether the message needs to be labeled as “recommended” instead of “sponsored”can_report (
bool
, optional)entities (List of
MessageEntity
, optional) – Message entities for styled textphoto (
Photo
, optional)media (
MessageMedia
, optional) – N/Acolor (
PeerColor
, optional)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.