2017-03-11 19:54:51 +01:00
---
title: message
description: Describes message
---
## Constructor: message
[Back to constructors index ](index.md )
Describes message
### Attributes:
| Name | Type | Required | Description |
2017-08-20 09:05:56 +00:00
|----------|---------------|----------|-------------|
2017-08-25 15:05:53 +02:00
|id|[int53 ](../types/int53.md ) | Yes|Unique message identifier|
|sender\_user\_id|[int ](../types/int.md ) | Yes|Identifier of the user who sent the message, 0 if unknown. It is unknown for channel posts|
|chat\_id|[int53 ](../types/int53.md ) | Yes|Chat identifier|
2017-03-11 19:54:51 +01:00
|send\_state|[MessageSendState ](../types/MessageSendState.md ) | Yes|Information about sending state of the message|
|can\_be\_edited|[Bool ](../types/Bool.md ) | Yes|True, if message can be edited|
2017-08-25 15:05:53 +02:00
|can\_be\_forwarded|[Bool ](../types/Bool.md ) | Yes|True, if message can be forwarded|
|can\_be\_deleted\_only\_for\_self|[Bool ](../types/Bool.md ) | Yes|True, if message can be deleted only for self, other users will continue to see it|
|can\_be\_deleted\_for\_everyone|[Bool ](../types/Bool.md ) | Yes|True, if message can be deleted for everyone|
2017-03-11 19:54:51 +01:00
|is\_post|[Bool ](../types/Bool.md ) | Yes|True, if message is channel post. All messages to broadcast channels are posts, all other messages are not posts|
2017-12-21 20:08:25 +00:00
|contains\_unread\_mention|[Bool ](../types/Bool.md ) | Yes|True, if message contains unread mention of the current user|
2017-03-11 19:54:51 +01:00
|date|[int ](../types/int.md ) | Yes|Date when message was sent, unix time|
|edit\_date|[int ](../types/int.md ) | Yes|Date when message was edited last time, unix time|
|forward\_info|[MessageForwardInfo ](../types/MessageForwardInfo.md ) | Yes|Information about initial message sender, nullable|
2017-08-25 15:05:53 +02:00
|reply\_to\_message\_id|[int53 ](../types/int53.md ) | Yes|If non-zero, identifier of the message this message replies to, can be identifier of deleted message|
|ttl|[int ](../types/int.md ) | Yes|Message TTL in seconds, 0 if none. TDLib will send updateDeleteMessages or updateMessageContent when TTL expires|
|ttl\_expires\_in|[double ](../types/double.md ) | Yes|Time left for message TTL to expire in seconds|
2017-03-11 19:54:51 +01:00
|via\_bot\_user\_id|[int ](../types/int.md ) | Yes|If non-zero, user identifier of the bot this message is sent via|
2017-08-25 15:05:53 +02:00
|author\_signature|[string ](../types/string.md ) | Yes|For channel posts, optional author signature|
2017-03-11 19:54:51 +01:00
|views|[int ](../types/int.md ) | Yes|Number of times this message was viewed|
|content|[MessageContent ](../types/MessageContent.md ) | Yes|Content of the message|
|reply\_markup|[ReplyMarkup ](../types/ReplyMarkup.md ) | Yes|Reply markup for the message, nullable|
### Type: [Message](../types/Message.md)