SponsoredMessage
Describes a sponsored message.
This is an alias for the SponsoredMessageUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "sponsoredMessage" | |
messageId | number | Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages |
sponsorChatId | number | Sponsor chat identifier; 0 if the sponsor chat is accessible through an invite link |
sponsorChatInfo | Information about the sponsor chat; may be null unless sponsor_chat_id == 0 | |
link | An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead | |
content | Content of the message. Currently, can be only of the type messageText |