Constructor: messages.messagesSlice
Incomplete list of messages and auxiliary data.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
inexact | Bool | Optional | If set, indicates that the results may be inexact |
count | int | Yes | Total number of messages in the list |
next_rate | int | Optional | Rate to use in the offset_rate parameter in the next call to messages.searchGlobal |
offset_id_offset | int | Optional | Indicates the absolute position of messages[0] within the total result set with count count . This is useful, for example, if the result was fetched using offset_id , and we need to display a progress/total counter (like photo 134 of 200 , for all media in a chat, we could simply use photo ${offset_id_offset} of ${count} . |
messages | Array of Message | Yes | List of messages |
chats | Array of Chat | Yes | List of chats mentioned in messages |
users | Array of User | Yes | List of users mentioned in messages and chats |
Type: messages.Messages
Example:
$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'inexact' => Bool, 'count' => int, 'next_rate' => int, 'offset_id_offset' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]];