Airgram

Guides
/
/
Output types

SponsoredMessage

Describes a sponsored message.

This is an alias for the SponsoredMessageUnion type.


NameTypeDescription
_"sponsoredMessage"
messageIdnumber Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
sponsorChatIdnumber 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