mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-23 15:58:27 +01:00
Update content of files
This commit is contained in:
parent
d17c1d55d3
commit
2da46a7731
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ Since <code>local_pts + pts_count < pts</code> (<code>137 < 140</code>), t
|
|||
<p>For all the other <a href="/type/Updates">Updates</a> type constructors there is no need to check <code>seq</code> or change a local state.</p>
|
||||
<h3><a class="anchor" href="#recovering-gaps" id="recovering-gaps" name="recovering-gaps"><i class="anchor-icon"></i></a>Recovering gaps</h3>
|
||||
<p>To do this, <a href="/method/updates.getDifference">updates.getDifference</a> (common/secret state) or <a href="/method/updates.getChannelDifference">updates.getChannelDifference</a> (channel state) with the respective local states must be called.<br>
|
||||
Only <a href="/method/updates.getDifference">updates.getDifference</a> should also be called on startup, to fetch new updates (preferably with some flags to reduce server load, see the method's docs).<br>
|
||||
Only <a href="/method/updates.getDifference">updates.getDifference</a> should also be called on startup, to fetch updates received while the client was offline (preferably with some flags to reduce server load, see the method's docs).<br>
|
||||
Manually obtaining updates is also required in the following situations:</p>
|
||||
<ul>
|
||||
<li>Loss of sync: a gap was found in <strong>seq</strong> / <strong>pts</strong> / <strong>qts</strong> (as described above). It may be useful to wait up to 0.5 seconds in this situation and abort the sync in case a new update arrives, that fills the gap.</li>
|
||||
|
|
Loading…
Reference in a new issue