Update UPDATES_INTERNAL.md

This commit is contained in:
Daniil Gentili 2019-07-17 20:33:14 +02:00 committed by GitHub
parent 332329b2ac
commit bbbafe0e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
---
title: Working with updates in MTProto
description: To store information about an account session and avoid re-logging in, serialization must be done.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Working with updates in MTProto
Implementations also have to take care to postpone updates received via the socket while filling gaps in the event and Update sequences, as well as avoid filling gaps in the same sequence.
Apart from the baisc operations [required to work with MTProto update sequences](https://core.telegram.org/api/updates), Implementations also have to take care to postpone updates received via the socket while filling gaps in the event and Update sequences, as well as avoid filling gaps in the same sequence.
An interesting and easy way this can be implemented, instead of using various locks, is by running background loops, like in [MadelineProto](https://github.com/danog/MadelineProto/tree/master/src/danog/MadelineProto/Loop/Update).