Layer 220
MessagesMessagesSlice
Incomplete list of messages and auxiliary data.
constructor
messages.messagesSlice#762b263d flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int search_flood:flags.3?SearchPostsFlood messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Inexact | flags.1?true | If set, indicates that the results may be inexact |
| Count | int | Total number of messages in the list |
| NextRate | flags.0?int | Rate to use in the offset_rate parameter in the next call to messages. search Global |
| OffsetIdOffset | flags.2?int | 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} ). |
| SearchFlood | flags.3?SearchPostsFlood | For 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 | Vector<Message> | List of messages |
| Chats | Vector<Chat> | List of chats mentioned in messages |
| Users | Vector<User> | List of users mentioned in messages and chats |
Returns
messages.MessagesGogram Example
// Creating MessagesMessagesSlice constructor obj := &tg.MessagesMessagesSlice{ Count: 0, Messages: []tg.Message{&tg.Message{}}, Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // Inexact: true, // NextRate: 0, // OffsetIdOffset: 0, // SearchFlood: &tg.SearchPostsFlood{}, }