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

2.0 KiB

title description nav_exclude image redirect_from
messages.forumTopics Contains information about multiple forum topics true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/messages_forumTopics.html

Constructor: messages.forumTopics

Back to constructors index

Contains information about multiple forum topics

Attributes:

Name Type Required Description
order_by_create_date Bool Optional Whether the returned topics are ordered by creation date; if set, pagination by offset_date should use forumTopic.date; otherwise topics are ordered by the last message date, so paginate by the date of the message referenced by forumTopic.top_message.
count int Yes Total number of topics matching query; may be more than the topics contained in topics, in which case pagination is required.
topics Array of ForumTopic Yes Forum topics
messages Array of Message Yes Related messages (contains the messages mentioned by forumTopic.top_message).
chats Array of Chat Yes Related chats
users Array of User Yes Related users
pts int Yes Event count after generation

Type: messages.ForumTopics

Example:

$messages_forumTopics = ['_' => 'messages.forumTopics', 'order_by_create_date' => Bool, 'count' => int, 'topics' => [ForumTopic, ForumTopic], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'pts' => int];