content
Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen.
intlongbooleanstatic final intbooleanlongSponsoredMessage(long messageId,
boolean isRecommended,
boolean canBeReported,
TdApi.MessageContent content,
TdApi.AdvertisementSponsor sponsor,
String title,
String buttonText,
int accentColorId,
long backgroundCustomEmojiId,
String additionalInfo) inttoStringmessageId - 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".canBeReported - True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage.content - Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen.sponsor - Information about the sponsor of the message.title - Title of the sponsored message.buttonText - Text for the message action button.accentColorId - Identifier of the accent color for title, button text and message background.backgroundCustomEmojiId - Identifier of a custom emoji to be shown on the message background; 0 if none.additionalInfo - If non-empty, additional information about the sponsored message to be shown along with the message.TdApi.ObjectgetConstructor in class TdApi.Object