MadelineProtoDocs/docs/API_docs/constructors/messages.channelMessages.md
2024-05-01 14:53:46 +02:00

1.9 KiB

title description nav_exclude image redirect_from
messages.channelMessages Channel messages true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/messages_channelMessages.html

Constructor: messages.channelMessages

Back to constructors index

Channel messages

Attributes:

Name Type Required Description
inexact Bool Optional If set, returned results may be inexact
pts int Yes Event count after generation
count int Yes Total number of results were found server-side (may not be all included here)
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 Found messages
topics Array of ForumTopic Yes Forum topic information
chats Array of Chat Yes Chats
users Array of User Yes Users

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]];