Inherits Object.
Describes a message.
Public Fields | |
int53 | id_ |
Message identifier; unique for the chat to which the message belongs. | |
object_ptr< MessageSender > | sender_id_ |
Identifier of the sender of the message. | |
int53 | chat_id_ |
Chat identifier. | |
object_ptr< MessageSendingState > | sending_state_ |
The sending state of the message; may be null. | |
object_ptr< MessageSchedulingState > | scheduling_state_ |
The scheduling state of the message; may be null. | |
bool | is_outgoing_ |
True, if the message is outgoing. | |
bool | is_pinned_ |
True, if the message is pinned. | |
bool | can_be_edited_ |
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. | |
bool | can_be_forwarded_ |
True, if the message can be forwarded. | |
bool | can_be_saved_ |
True, if content of the message can be saved locally or copied. | |
bool | can_be_deleted_only_for_self_ |
True, if the message can be deleted only for the current user while other users will continue to see it. | |
bool | can_be_deleted_for_all_users_ |
True, if the message can be deleted for all users. | |
bool | can_get_statistics_ |
True, if the message statistics are available. | |
bool | can_get_message_thread_ |
True, if the message thread info is available. | |
bool | can_get_viewers_ |
True, if chat members already viewed the message can be received through getMessageViewers. | |
bool | can_get_media_timestamp_links_ |
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description. | |
bool | has_timestamped_media_ |
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message. | |
bool | is_channel_post_ |
True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts. | |
bool | contains_unread_mention_ |
True, if the message contains an unread mention for the current user. | |
int32 | date_ |
Point in time (Unix timestamp) when the message was sent. | |
int32 | edit_date_ |
Point in time (Unix timestamp) when the message was last edited. | |
object_ptr< messageForwardInfo > | forward_info_ |
Information about the initial message sender; may be null. | |
object_ptr< messageInteractionInfo > | interaction_info_ |
Information about interactions with the message; may be null. | |
int53 | reply_in_chat_id_ |
If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id. | |
int53 | reply_to_message_id_ |
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message. | |
int53 | message_thread_id_ |
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs. | |
int32 | 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. | |
double | ttl_expires_in_ |
Time left before the message expires, in seconds. If the TTL timer isn't started yet, equals to the value of the ttl field. | |
int53 | via_bot_user_id_ |
If non-zero, the user identifier of the bot through which this message was sent. | |
string | author_signature_ |
For channel posts and anonymous group messages, optional author signature. | |
int64 | media_album_id_ |
Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums. | |
string | restriction_reason_ |
If non-empty, contains a human-readable description of the reason why access to this message must be restricted. | |
object_ptr< MessageContent > | content_ |
Content of the message. | |
object_ptr< ReplyMarkup > | reply_markup_ |
Reply markup for the message; may be null. | |
Static Public Attributes | |
static const std::int32_t | ID = -961280585 |
Identifier uniquely determining a type of the object. | |
message | ( | ) |
Describes a message.
message | ( | int53 | id_, |
object_ptr< MessageSender > && | sender_id_, | ||
int53 | chat_id_, | ||
object_ptr< MessageSendingState > && | sending_state_, | ||
object_ptr< MessageSchedulingState > && | scheduling_state_, | ||
bool | is_outgoing_, | ||
bool | is_pinned_, | ||
bool | can_be_edited_, | ||
bool | can_be_forwarded_, | ||
bool | can_be_saved_, | ||
bool | can_be_deleted_only_for_self_, | ||
bool | can_be_deleted_for_all_users_, | ||
bool | can_get_statistics_, | ||
bool | can_get_message_thread_, | ||
bool | can_get_viewers_, | ||
bool | can_get_media_timestamp_links_, | ||
bool | has_timestamped_media_, | ||
bool | is_channel_post_, | ||
bool | contains_unread_mention_, | ||
int32 | date_, | ||
int32 | edit_date_, | ||
object_ptr< messageForwardInfo > && | forward_info_, | ||
object_ptr< messageInteractionInfo > && | interaction_info_, | ||
int53 | reply_in_chat_id_, | ||
int53 | reply_to_message_id_, | ||
int53 | message_thread_id_, | ||
int32 | ttl_, | ||
double | ttl_expires_in_, | ||
int53 | via_bot_user_id_, | ||
string const & | author_signature_, | ||
int64 | media_album_id_, | ||
string const & | restriction_reason_, | ||
object_ptr< MessageContent > && | content_, | ||
object_ptr< ReplyMarkup > && | reply_markup_ | ||
) |
Describes a message.
[in] | id_ | Message identifier; unique for the chat to which the message belongs. |
[in] | sender_id_ | Identifier of the sender of the message. |
[in] | chat_id_ | Chat identifier. |
[in] | sending_state_ | The sending state of the message; may be null. |
[in] | scheduling_state_ | The scheduling state of the message; may be null. |
[in] | is_outgoing_ | True, if the message is outgoing. |
[in] | is_pinned_ | True, if the message is pinned. |
[in] | can_be_edited_ | 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. |
[in] | can_be_forwarded_ | True, if the message can be forwarded. |
[in] | can_be_saved_ | True, if content of the message can be saved locally or copied. |
[in] | can_be_deleted_only_for_self_ | True, if the message can be deleted only for the current user while other users will continue to see it. |
[in] | can_be_deleted_for_all_users_ | True, if the message can be deleted for all users. |
[in] | can_get_statistics_ | True, if the message statistics are available. |
[in] | can_get_message_thread_ | True, if the message thread info is available. |
[in] | can_get_viewers_ | True, if chat members already viewed the message can be received through getMessageViewers. |
[in] | can_get_media_timestamp_links_ | True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description. |
[in] | has_timestamped_media_ | True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message. |
[in] | is_channel_post_ | True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts. |
[in] | contains_unread_mention_ | True, if the message contains an unread mention for the current user. |
[in] | date_ | Point in time (Unix timestamp) when the message was sent. |
[in] | edit_date_ | Point in time (Unix timestamp) when the message was last edited. |
[in] | forward_info_ | Information about the initial message sender; may be null. |
[in] | interaction_info_ | Information about interactions with the message; may be null. |
[in] | reply_in_chat_id_ | If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id. |
[in] | reply_to_message_id_ | If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message. |
[in] | message_thread_id_ | If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs. |
[in] | 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. |
[in] | ttl_expires_in_ | Time left before the message expires, in seconds. If the TTL timer isn't started yet, equals to the value of the ttl field. |
[in] | via_bot_user_id_ | If non-zero, the user identifier of the bot through which this message was sent. |
[in] | author_signature_ | For channel posts and anonymous group messages, optional author signature. |
[in] | media_album_id_ | Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums. |
[in] | restriction_reason_ | If non-empty, contains a human-readable description of the reason why access to this message must be restricted. |
[in] | content_ | Content of the message. |
[in] | reply_markup_ | Reply markup for the message; may be null. |
|
inlinefinalvirtual |
|
finalvirtual |