Layer 220
MessagesChannelMessages
Channel messages
constructor
messages.channelMessages#c776ba4e flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.Messages;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Inexact | flags.1?true | If set, returned results may be inexact |
| Pts | int | Event count after generation |
| Count | int | Total number of results were found server-side (may not be all included here) |
| 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}. |
| Messages | Vector<Message> | Found messages |
| Topics | Vector<ForumTopic> | Forum topic information |
| Chats | Vector<Chat> | Chats |
| Users | Vector<User> | Users |
Returns
messages.MessagesGogram Example
// Creating MessagesChannelMessages constructor obj := &tg.MessagesChannelMessages{ Pts: 0, Count: 0, Messages: []tg.Message{&tg.Message{}}, Topics: []tg.ForumTopic{&tg.ForumTopic{}}, Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // Inexact: true, // OffsetIdOffset: 0, }