content
Content of the message. Currently,
can be only of the type messageText.
static final int
boolean
long
long
SponsoredMessage(long messageId,
boolean isRecommended,
long sponsorChatId,
TdApi.ChatInviteLinkInfo sponsorChatInfo,
TdApi.InternalLinkType link,
TdApi.MessageContent content)
SponsoredMessage(DataInput input)
serialize, toString
messageId
- long Message identifier; unique for the
chat to which the sponsored message
belongs among both ordinary and sponsored messages.isRecommended
- boolean True, if the message needs to be
labeled as "recommended"
instead of "sponsored".sponsorChatId
- long Sponsor chat identifier; 0 if the
sponsor chat is accessible through an invite link.sponsorChatInfo
- ChatInviteLinkInfo Information about the sponsor chat;
may be null unless sponsorChatId == 0.link
- InternalLinkType An internal link to be opened when
the sponsored message is clicked; may
be null if the sponsor chat needs to
be opened instead.content
- MessageContent Content of the message. Currently,
can be only of the type messageText.IOException
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
IOException