Layer 220
UpdatesChannelDifference
The new updates
constructor
updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Final | flags.0?true | Whether there are more updates to be fetched using get Difference, starting from the provided pts |
| Pts | int | The PTS from which to start getting updates the next time |
| Timeout | flags.1?int | Clients are supposed to refetch the channel difference after timeout seconds have elapsed, if the user is currently viewing the chat, see here for more info. |
| NewMessages | Vector<Message> | New messages |
| OtherUpdates | Vector<Update> | Other updates |
| Chats | Vector<Chat> | Chats |
| Users | Vector<User> | Users |
Returns
updates.ChannelDifferenceGogram Example
// Creating UpdatesChannelDifference constructor obj := &tg.UpdatesChannelDifference{ Pts: 0, NewMessages: []tg.Message{&tg.Message{}}, OtherUpdates: []tg.Update{&tg.UpdateNewMessage{}}, Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // Final: true, // Timeout: 0, }