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/A
- from_id ( - Peer, optional) – N/A
- chat_invite ( - ChatInvite, optional) – N/A
- chat_invite_hash ( - str, optional) – N/A
- channel_post ( - int- 32-bit, optional) – N/A
- start_param ( - str, optional) – N/A
- entities (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.