sponsoredMessage

A sponsored message.

sponsoredMessage#3a836df8 flags:# recommended:flags.5?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> = SponsoredMessage;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
random_id bytes Message ID
from_id flags.3?Peer ID of the sender of the message
chat_invite flags.4?ChatInvite Information about the chat invite hash specified in chat_invite_hash
chat_invite_hash flags.4?string Chat invite
channel_post flags.2?int Optional link to a channel post if from_id points to a channel
start_param flags.0?string Parameter for the bot start message if the sponsored chat is a chat with a bot.
message string Sponsored message
entities flags.1?Vector<MessageEntity> Message entities for styled text

Type

SponsoredMessage

Related pages

Styled text with message entities

How to create styled text with message entities

Ir arriba