Link Search Menu Expand Document

Constructor: messages.forumTopics

Back to constructors index

Contains information about multiple forum topics

Attributes:

NameTypeRequiredDescription
order_by_create_dateBoolOptionalWhether 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.
countintYesTotal number of topics matching query; may be more than the topics contained in topics, in which case pagination is required.
topicsArray of ForumTopicYesForum topics
messagesArray of MessageYesRelated messages (contains the messages mentioned by forumTopic.top_message).
chatsArray of ChatYesRelated chats
usersArray of UserYesRelated users
ptsintYesEvent 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];