mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 20:46:56 +01:00
2.5 KiB
2.5 KiB
title | description |
---|---|
message | Describes message |
Constructor: message
Describes message
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | int53 | Yes | Unique message identifier |
sender_user_id | int | Yes | Identifier of the user who sent the message, 0 if unknown. It is unknown for channel posts |
chat_id | int53 | Yes | Chat identifier |
send_state | MessageSendState | Yes | Information about sending state of the message |
can_be_edited | Bool | Yes | True, if message can be edited |
can_be_forwarded | Bool | Yes | True, if message can be forwarded |
can_be_deleted_only_for_self | Bool | Yes | True, if message can be deleted only for self, other users will continue to see it |
can_be_deleted_for_everyone | Bool | Yes | True, if message can be deleted for everyone |
is_post | Bool | Yes | True, if message is channel post. All messages to broadcast channels are posts, all other messages are not posts |
contains_unread_mention | Bool | Yes | True, if message contains unread mention of the current user |
date | int | Yes | Date when message was sent, unix time |
edit_date | int | Yes | Date when message was edited last time, unix time |
forward_info | MessageForwardInfo | Yes | Information about initial message sender, nullable |
reply_to_message_id | int53 | Yes | If non-zero, identifier of the message this message replies to, can be identifier of deleted message |
ttl | int | Yes | Message TTL in seconds, 0 if none. TDLib will send updateDeleteMessages or updateMessageContent when TTL expires |
ttl_expires_in | double | Yes | Time left for message TTL to expire in seconds |
via_bot_user_id | int | Yes | If non-zero, user identifier of the bot this message is sent via |
author_signature | string | Yes | For channel posts, optional author signature |
views | int | Yes | Number of times this message was viewed |
content | MessageContent | Yes | Content of the message |
reply_markup | ReplyMarkup | Yes | Reply markup for the message, nullable |