Link Search Menu Expand Document

Constructor: messages.discussionMessage

Back to constructors index

Information about a message thread

Attributes:

NameTypeRequiredDescription
messagesArray of MessageYesThe messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID).
max_idintOptionalMessage ID of latest reply in this thread
read_inbox_max_idintOptionalMessage ID of latest read incoming message in this thread
read_outbox_max_idintOptionalMessage ID of latest read outgoing message in this thread
unread_countintYesNumber of unread messages
chatsArray of ChatYesChats mentioned in constructor
usersArray of UserYesUsers mentioned in constructor

Type: messages.DiscussionMessage

Example:

$messages_discussionMessage = ['_' => 'messages.discussionMessage', 'messages' => [Message, Message], 'max_id' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chats' => [Chat, Chat], 'users' => [User, User]];