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) – Whether a profile photo bubble should be displayed for this message, like for messages sent in groups. The photo shown in the bubble is obtained either from the peer contained in from_id, or from chat_invite.from_id (
Peer
, optional) – ID of the sender of the message.chat_invite (
ChatInvite
, optional) – Information about the chat invite hash specified in chat_invite_hash.chat_invite_hash (
str
, optional) – Chat invite.channel_post (
int
32-bit
, optional) – Optional link to a channel post if from_id points to a channel.start_param (
str
, optional) – Parameter for the bot start message if the sponsored chat is a chat with a bot.entities (List of
MessageEntity
, optional) – Message entities for styled text.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.