Link Search Menu Expand Document

Constructor: messages.channelMessages

Back to constructors index

Channel messages

Attributes:

NameTypeRequiredDescription
inexactBoolOptionalIf set, returned results may be inexact
ptsintYesEvent count after generation
countintYesTotal number of results were found server-side (may not be all included here)
offset_id_offsetintOptionalIndicates 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}.
messagesArray of MessageYesFound messages
topicsArray of ForumTopicYesForum topic information
chatsArray of ChatYesChats
usersArray of UserYesUsers

Type: messages.Messages

Example:

$messages_channelMessages = ['_' => 'messages.channelMessages', 'inexact' => Bool, 'pts' => int, 'count' => int, 'offset_id_offset' => int, 'messages' => [Message, Message], 'topics' => [ForumTopic, ForumTopic], 'chats' => [Chat, Chat], 'users' => [User, User]];