content
Content of the message.
public static class TdApi.Message extends TdApi.Object
Modifier and Type | Field | Description |
---|---|---|
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 |
canGetMessageThread |
True, if the message thread info is available.
|
boolean |
canGetStatistics |
True, if the message statistics are available.
|
long |
chatId |
Chat identifier.
|
static int |
CONSTRUCTOR |
|
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.
|
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.
|
String |
restrictionReason |
If non-empty, contains a human-readable
description of the reason why access
to this message must be restricted.
|
TdApi.MessageSchedulingState |
schedulingState |
Information about the scheduling state
of the message; may be null.
|
TdApi.MessageSender |
sender |
The sender of the message.
|
TdApi.MessageSendingState |
sendingState |
Information about 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.
|
int |
viaBotUserId |
If non-zero, the user identifier of
the bot through which this message was sent.
|
Constructor | Description |
---|---|
Message() |
Describes a message.
|
Message(long id,
TdApi.MessageSender sender,
long chatId,
TdApi.MessageSendingState sendingState,
TdApi.MessageSchedulingState schedulingState,
boolean isOutgoing,
boolean isPinned,
boolean canBeEdited,
boolean canBeForwarded,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean isChannelPost,
boolean containsUnreadMention,
int date,
int editDate,
TdApi.MessageForwardInfo forwardInfo,
TdApi.MessageInteractionInfo interactionInfo,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int ttl,
double ttlExpiresIn,
int viaBotUserId,
String authorSignature,
long mediaAlbumId,
String restrictionReason,
TdApi.MessageContent content,
TdApi.ReplyMarkup replyMarkup) |
Describes a message.
|
Message(DataInput input) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
getConstructor() |
|
int |
hashCode() |
|
void |
serialize(DataOutput output) |
serialize, toString
id
- long Message identifier; unique for the
chat to which the message belongs.sender
- MessageSender The sender of the message.chatId
- long Chat identifier.sendingState
- MessageSendingState Information about the sending state
of the message; may be null.schedulingState
- MessageSchedulingState Information about the scheduling state
of the message; may be null.isOutgoing
- boolean True, if the message is outgoing.isPinned
- boolean True, if the message is pinned.canBeEdited
- boolean 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
- boolean True, if the message can be forwarded.canBeDeletedOnlyForSelf
- boolean True, if the message can be deleted
only for the current user while other
users will continue to see it.canBeDeletedForAllUsers
- boolean True, if the message can be deleted
for all users.canGetStatistics
- boolean True, if the message statistics are available.canGetMessageThread
- boolean True, if the message thread info is available.isChannelPost
- boolean True, if the message is a channel
post. All messages to channels are
channel posts, all other messages are
not channel posts.containsUnreadMention
- boolean True, if the message contains an unread
mention for the current user.date
- int Point in time (Unix timestamp) when
the message was sent.editDate
- int Point in time (Unix timestamp) when
the message was last edited.forwardInfo
- MessageForwardInfo Information about the initial message
sender; may be null.interactionInfo
- MessageInteractionInfo Information about interactions with
the message; may be null.replyInChatId
- long 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
- long If non-zero, the identifier of the
message this message is replying to;
can be the identifier of a deleted message.messageThreadId
- long If non-zero, the identifier of the
message thread the message belongs
to; unique within the chat to which
the message belongs.ttl
- int 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
- double Time left before the message expires, in seconds.viaBotUserId
- int If non-zero, the user identifier of
the bot through which this message was sent.authorSignature
- String For channel posts and anonymous group
messages, optional author signature.mediaAlbumId
- long Unique identifier of an album this
message belongs to. Only audios,
documents, photos and videos can be
grouped together in albums.restrictionReason
- String If non-empty, contains a human-readable
description of the reason why access
to this message must be restricted.content
- MessageContent Content of the message.replyMarkup
- ReplyMarkup Reply markup for the message; may be null.IOException
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
IOException