Layer 227
UpdatesChannelDifferenceObj
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 |
|---|---|---|
| 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 UpdatesChannelDifferenceObj constructor obj := &tg.UpdatesChannelDifferenceObj{ Final: nil, Pts: 42, Timeout: nil, NewMessages: &tg.VectorMessage{}, OtherUpdates: &tg.VectorUpdate{}, Chats: &tg.VectorChat{}, // ... more required fields }