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.
|
boolean |
canBeDeletedForAllUsers
True, if the message can be deleted for all users.
|
boolean |
canBeDeletedOnlyForSelf
True, if the message can be deleted only for the current user while other users will continue to see it.
|
boolean |
canBeEdited
True, if the message can be edited.
|
boolean |
canBeForwarded
True, if the message can be forwarded.
|
boolean |
canBeSaved
True, if content of the message can be saved locally or copied.
|
boolean |
canGetMediaTimestampLinks
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description.
|
boolean |
canGetMessageThread
True, if the message thread info is available.
|
boolean |
canGetStatistics
True, if the message statistics are available.
|
boolean |
canGetViewers
True, if chat members already viewed the message can be received through getMessageViewers.
|
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.
|
int |
editDate
Point in time (Unix timestamp) when the message was last edited.
|
TdApi.MessageForwardInfo |
forwardInfo
Information about the initial message sender; may be null.
|
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.MessageInteractionInfo |
interactionInfo
Information about interactions with the message; may be null.
|
boolean |
isChannelPost
True, if the message is a channel post.
|
boolean |
isOutgoing
True, if the message is outgoing.
|
boolean |
isPinned
True, if the message is pinned.
|
long |
mediaAlbumId
Unique identifier of an album this message belongs to.
|
long |
messageThreadId
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.
|
long |
replyInChatId
If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different replyInChatId and chatId.
|
TdApi.ReplyMarkup |
replyMarkup
Reply markup for the message; may be null.
|
long |
replyToMessageId
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.
|
java.lang.String |
restrictionReason
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
|
TdApi.MessageSchedulingState |
schedulingState
The scheduling state of the message; may be null.
|
TdApi.MessageSender |
senderId
Identifier of the sender of the message.
|
TdApi.MessageSendingState |
sendingState
The sending state of the message; may be null.
|
int |
ttl
For self-destructing messages, the message's TTL (Time To Live), in seconds; 0 if none.
|
double |
ttlExpiresIn
Time left before the message expires, in seconds.
|
long |
viaBotUserId
If non-zero, the user identifier of the 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 canBeEdited,
boolean canBeForwarded,
boolean canBeSaved,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean canGetViewers,
boolean canGetMediaTimestampLinks,
boolean hasTimestampedMedia,
boolean isChannelPost,
boolean containsUnreadMention,
int date,
int editDate,
TdApi.MessageForwardInfo forwardInfo,
TdApi.MessageInteractionInfo interactionInfo,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int ttl,
double ttlExpiresIn,
long viaBotUserId,
java.lang.String authorSignature,
long mediaAlbumId,
java.lang.String restrictionReason,
TdApi.MessageContent content,
TdApi.ReplyMarkup replyMarkup)
Describes a message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long id
public TdApi.MessageSender senderId
public long chatId
@Nullable public TdApi.MessageSendingState sendingState
@Nullable public TdApi.MessageSchedulingState schedulingState
public boolean isOutgoing
public boolean isPinned
public boolean canBeEdited
public boolean canBeForwarded
public boolean canBeSaved
public boolean canBeDeletedOnlyForSelf
public boolean canBeDeletedForAllUsers
public boolean canGetStatistics
public boolean canGetMessageThread
public boolean canGetViewers
public boolean canGetMediaTimestampLinks
public boolean hasTimestampedMedia
public boolean isChannelPost
public boolean containsUnreadMention
public int date
public int editDate
@Nullable public TdApi.MessageForwardInfo forwardInfo
@Nullable public TdApi.MessageInteractionInfo interactionInfo
public long replyInChatId
public long replyToMessageId
public long messageThreadId
public int ttl
public double ttlExpiresIn
public long viaBotUserId
public java.lang.String authorSignature
public long mediaAlbumId
public java.lang.String restrictionReason
public TdApi.MessageContent content
@Nullable 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 canBeEdited, boolean canBeForwarded, boolean canBeSaved, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canGetStatistics, boolean canGetMessageThread, boolean canGetViewers, boolean canGetMediaTimestampLinks, boolean hasTimestampedMedia, boolean isChannelPost, boolean containsUnreadMention, int date, int editDate, TdApi.MessageForwardInfo forwardInfo, TdApi.MessageInteractionInfo interactionInfo, long replyInChatId, long replyToMessageId, long messageThreadId, int ttl, double ttlExpiresIn, long viaBotUserId, java.lang.String authorSignature, long mediaAlbumId, 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.schedulingState
- The scheduling state of the message; may be null.isOutgoing
- True, if the message is outgoing.isPinned
- True, if the message is pinned.canBeEdited
- True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application.canBeForwarded
- True, if the message can be forwarded.canBeSaved
- True, if content of the message can be saved locally or copied.canBeDeletedOnlyForSelf
- True, if the message can be deleted only for the current user while other users will continue to see it.canBeDeletedForAllUsers
- True, if the message can be deleted for all users.canGetStatistics
- True, if the message statistics are available.canGetMessageThread
- True, if the message thread info is available.canGetViewers
- True, if chat members already viewed the message can be received through getMessageViewers.canGetMediaTimestampLinks
- True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description.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.containsUnreadMention
- True, if the message contains an unread mention for the current user.date
- Point in time (Unix timestamp) when the message was sent.editDate
- Point in time (Unix timestamp) when the message was last edited.forwardInfo
- Information about the initial message sender; may be null.interactionInfo
- Information about interactions with the message; may be null.replyInChatId
- If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different replyInChatId and chatId.replyToMessageId
- If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.messageThreadId
- If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.ttl
- For self-destructing messages, the message's TTL (Time To Live), in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the TTL expires.ttlExpiresIn
- Time left before the message expires, in seconds. If the TTL timer isn't started yet, equals to the value of the ttl field.viaBotUserId
- If non-zero, the user identifier of the bot through which this message was sent.authorSignature
- For channel posts and anonymous group messages, optional author signature.mediaAlbumId
- Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums.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.public int getConstructor()
getConstructor
in class TdApi.Object