Layer 220
UpdatesChannelDifferenceTooLong
The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit ), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Final | flags.0?true | Whether there are more updates that must be fetched (always false) |
| Timeout | flags.1?int | Clients are supposed to refetch the channel difference after timeout seconds have elapsed |
| Dialog | Dialog | Dialog containing the latest PTS that can be used to reset the channel state |
| Messages | Vector<Message> | The latest messages |
| Chats | Vector<Chat> | Chats from messages |
| Users | Vector<User> | Users from messages |
Returns
updates.ChannelDifferenceGogram Example
// Creating UpdatesChannelDifferenceTooLong constructor obj := &tg.UpdatesChannelDifferenceTooLong{ Dialog: &tg.Dialog{}, Messages: []tg.Message{&tg.Message{}}, Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // Final: true, // Timeout: 0, }