Skip to main content

messages.messagesSlice

Incomplete list of messages and auxiliary data.

type tg.MessagesMessagesSlice struct { /* ... */ }

Implements messages.Messages.

Fields

NameTypeRequiredDescription
InexactboolIf set, indicates that the results may be inexact
CountintyesTotal number of messages in the list
NextRateintRate to use in the offset_rate parameter in the next call to messages.searchGlobal
OffsetIDOffsetintIndicates 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}).
SearchFloodSearchPostsFloodFor global post searches », the remaining amount of free searches, here query_is_free is related to the current call only, not to the next paginated call, and all subsequent pagination calls will always be free.
Messages[]MessageClassyesList of messages
Topics[]ForumTopicClassyesTopics field of MessagesMessagesSlice.
Chats[]ChatClassyesList of chats mentioned in messages
Users[]UserClassyesList of users mentioned in messages and chats

References