content
Content of the message. Currently, can be only of the type messageText.
static final int
boolean
long
SponsoredMessage(long messageId,
boolean isRecommended,
TdApi.MessageContent content,
TdApi.MessageSponsor sponsor,
String additionalInfo)
SponsoredMessage(DataInput input)
boolean
int
int
hashCode()
void
serialize(DataOutput output)
serialize, toString
messageId
- Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.isRecommended
- True, if the message needs to be labeled as "recommended" instead of "sponsored".content
- Content of the message. Currently, can be only of the type messageText.sponsor
- Information about the sponsor of the message.additionalInfo
- If non-empty, additional information about the sponsored message to be shown along with the message.input
- Serialized inputIOException
- the deserialization failedTdApi.Object
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
output
- output data streamIOException
- the serialization failed