SponsoredMessage#
- class pyrogram.raw.types.SponsoredMessage#
A sponsored message.
Constructor of
SponsoredMessage
.- Details:
Layer:
158
ID:
FC25B828
- Parameters:
random_id (
bytes
) – Message ID.message (
str
) – Sponsored message.recommended (
bool
, optional) – Whether the message needs to be labeled as “recommended” instead of “sponsored”.show_peer_photo (
bool
, optional) – N/Afrom_id (
Peer
, optional) – N/Achat_invite (
ChatInvite
, optional) – N/Achat_invite_hash (
str
, optional) – N/Achannel_post (
int
32-bit
, optional) – N/Astart_param (
str
, optional) – N/Aentities (List of
MessageEntity
, optional) – Message entities for styled text in message.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.