public static class TdApi.Message extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
authorSignature
For channel posts and anonymous group messages, optional author signature.
|
double |
autoDeleteIn
Time left before the message will be automatically deleted by messageAutoDeleteTime setting of the chat, in seconds; 0 if never.
|
boolean |
canBeSaved
True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.
|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
containsUnreadMention
True, if the message contains an unread mention for the current user.
|
TdApi.MessageContent |
content
Content of the message.
|
int |
date
Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.
|
int |
editDate
Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.
|
long |
effectId
Unique identifier of the effect added to the message; 0 if none.
|
TdApi.FactCheck |
factCheck
Information about fact-check added to the message; may be null if none.
|
TdApi.MessageForwardInfo |
forwardInfo
Information about the initial message sender; may be null if none or unknown.
|
boolean |
hasSensitiveContent
True, if media content of the message must be hidden with 18+ spoiler.
|
boolean |
hasTimestampedMedia
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
|
long |
id
Message identifier; unique for the chat to which the message belongs.
|
TdApi.MessageImportInfo |
importInfo
Information about the initial message for messages created with importMessages; may be null if the message isn't imported.
|
TdApi.MessageInteractionInfo |
interactionInfo
Information about interactions with the message; may be null if none.
|
boolean |
isChannelPost
True, if the message is a channel post.
|
boolean |
isFromOffline
True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.
|
boolean |
isOutgoing
True, if the message is outgoing.
|
boolean |
isPinned
True, if the message is pinned.
|
boolean |
isTopicMessage
True, if the message is a forum topic message.
|
long |
mediaAlbumId
Unique identifier of an album this message belongs to; 0 if none.
|
long |
messageThreadId
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.
|
TdApi.ReplyMarkup |
replyMarkup
Reply markup for the message; may be null if none.
|
TdApi.MessageReplyTo |
replyTo
Information about the message or the story this message is replying to; may be null if none.
|
java.lang.String |
restrictionReason
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
|
long |
savedMessagesTopicId
Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages.
|
TdApi.MessageSchedulingState |
schedulingState
The scheduling state of the message; may be null if the message isn't scheduled.
|
double |
selfDestructIn
Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet.
|
TdApi.MessageSelfDestructType |
selfDestructType
The message's self-destruct type; may be null if none.
|
int |
senderBoostCount
Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown.
|
long |
senderBusinessBotUserId
If non-zero, the user identifier of the business bot that sent this message.
|
TdApi.MessageSender |
senderId
Identifier of the sender of the message.
|
TdApi.MessageSendingState |
sendingState
The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent.
|
TdApi.UnreadReaction[] |
unreadReactions
Information about unread reactions added to the message.
|
long |
viaBotUserId
If non-zero, the user identifier of the inline bot through which this message was sent.
|
| Constructor and Description |
|---|
Message()
Describes a message.
|
Message(long id,
TdApi.MessageSender senderId,
long chatId,
TdApi.MessageSendingState sendingState,
TdApi.MessageSchedulingState schedulingState,
boolean isOutgoing,
boolean isPinned,
boolean isFromOffline,
boolean canBeSaved,
boolean hasTimestampedMedia,
boolean isChannelPost,
boolean isTopicMessage,
boolean containsUnreadMention,
int date,
int editDate,
TdApi.MessageForwardInfo forwardInfo,
TdApi.MessageImportInfo importInfo,
TdApi.MessageInteractionInfo interactionInfo,
TdApi.UnreadReaction[] unreadReactions,
TdApi.FactCheck factCheck,
TdApi.MessageReplyTo replyTo,
long messageThreadId,
long savedMessagesTopicId,
TdApi.MessageSelfDestructType selfDestructType,
double selfDestructIn,
double autoDeleteIn,
long viaBotUserId,
long senderBusinessBotUserId,
int senderBoostCount,
java.lang.String authorSignature,
long mediaAlbumId,
long effectId,
boolean hasSensitiveContent,
java.lang.String restrictionReason,
TdApi.MessageContent content,
TdApi.ReplyMarkup replyMarkup)
Describes a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long id
public TdApi.MessageSender senderId
public long chatId
public TdApi.MessageSendingState sendingState
public TdApi.MessageSchedulingState schedulingState
public boolean isOutgoing
public boolean isPinned
public boolean isFromOffline
public boolean canBeSaved
public boolean hasTimestampedMedia
public boolean isChannelPost
public boolean isTopicMessage
public boolean containsUnreadMention
public int date
public int editDate
public TdApi.MessageForwardInfo forwardInfo
public TdApi.MessageImportInfo importInfo
public TdApi.MessageInteractionInfo interactionInfo
public TdApi.UnreadReaction[] unreadReactions
public TdApi.FactCheck factCheck
public TdApi.MessageReplyTo replyTo
public long messageThreadId
public long savedMessagesTopicId
public TdApi.MessageSelfDestructType selfDestructType
public double selfDestructIn
public double autoDeleteIn
public long viaBotUserId
public long senderBusinessBotUserId
public int senderBoostCount
public java.lang.String authorSignature
public long mediaAlbumId
public long effectId
public boolean hasSensitiveContent
public java.lang.String restrictionReason
public TdApi.MessageContent content
public TdApi.ReplyMarkup replyMarkup
public static final int CONSTRUCTOR
public Message()
public Message(long id,
TdApi.MessageSender senderId,
long chatId,
TdApi.MessageSendingState sendingState,
TdApi.MessageSchedulingState schedulingState,
boolean isOutgoing,
boolean isPinned,
boolean isFromOffline,
boolean canBeSaved,
boolean hasTimestampedMedia,
boolean isChannelPost,
boolean isTopicMessage,
boolean containsUnreadMention,
int date,
int editDate,
TdApi.MessageForwardInfo forwardInfo,
TdApi.MessageImportInfo importInfo,
TdApi.MessageInteractionInfo interactionInfo,
TdApi.UnreadReaction[] unreadReactions,
TdApi.FactCheck factCheck,
TdApi.MessageReplyTo replyTo,
long messageThreadId,
long savedMessagesTopicId,
TdApi.MessageSelfDestructType selfDestructType,
double selfDestructIn,
double autoDeleteIn,
long viaBotUserId,
long senderBusinessBotUserId,
int senderBoostCount,
java.lang.String authorSignature,
long mediaAlbumId,
long effectId,
boolean hasSensitiveContent,
java.lang.String restrictionReason,
TdApi.MessageContent content,
TdApi.ReplyMarkup replyMarkup)
id - Message identifier; unique for the chat to which the message belongs.senderId - Identifier of the sender of the message.chatId - Chat identifier.sendingState - The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent.schedulingState - The scheduling state of the message; may be null if the message isn't scheduled.isOutgoing - True, if the message is outgoing.isPinned - True, if the message is pinned.isFromOffline - True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.canBeSaved - True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.hasTimestampedMedia - True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.isChannelPost - True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.isTopicMessage - True, if the message is a forum topic message.containsUnreadMention - True, if the message contains an unread mention for the current user.date - Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.editDate - Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.forwardInfo - Information about the initial message sender; may be null if none or unknown.importInfo - Information about the initial message for messages created with importMessages; may be null if the message isn't imported.interactionInfo - Information about interactions with the message; may be null if none.unreadReactions - Information about unread reactions added to the message.factCheck - Information about fact-check added to the message; may be null if none.replyTo - Information about the message or the story this message is replying to; may be null if none.messageThreadId - If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.savedMessagesTopicId - Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages.selfDestructType - The message's self-destruct type; may be null if none.selfDestructIn - Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet.autoDeleteIn - Time left before the message will be automatically deleted by messageAutoDeleteTime setting of the chat, in seconds; 0 if never.viaBotUserId - If non-zero, the user identifier of the inline bot through which this message was sent.senderBusinessBotUserId - If non-zero, the user identifier of the business bot that sent this message.senderBoostCount - Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.myBoostCount must be used instead.authorSignature - For channel posts and anonymous group messages, optional author signature.mediaAlbumId - Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.effectId - Unique identifier of the effect added to the message; 0 if none.hasSensitiveContent - True, if media content of the message must be hidden with 18+ spoiler.restrictionReason - If non-empty, contains a human-readable description of the reason why access to this message must be restricted.content - Content of the message.replyMarkup - Reply markup for the message; may be null if none.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object