Update content of files

This commit is contained in:
GitHub Action 2022-09-10 15:54:19 +00:00
parent 18c47d17ab
commit 4f9a8911e7
2 changed files with 2 additions and 2 deletions

View file

@ -267,7 +267,7 @@ Also, discussion group admins can now <a href="/api/discussion#requiring-users-t
<div><pre><code><a href="/constructor/phoneConnection">phoneConnection</a>#9cc123c7 flags:<a href="/type/%23">#</a> tcp:flags.0?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> ip:<a href="/type/string">string</a> ipv6:<a href="/type/string">string</a> port:<a href="/type/int">int</a> peer_tag:<a href="/type/bytes">bytes</a> = <a href="/type/PhoneConnection">PhoneConnection</a>;<br></code></pre></div>
<h3><a class="anchor" href="#layer-140" id="layer-140" name="layer-140"><i class="anchor-icon"></i></a><a href="/schema?layer=140">Layer 140</a></h3>
<p>Introducing <a href="/api/bots/attach">attachment menus</a>, <a href="/api/bots/webapps">bot web apps</a>, <a href="/api/bots/menu">custom bot menu buttons</a>, <a href="/api/rights#suggested-bot-rights">suggested bot admin rights</a> and <a href="/api/ringtones">ringtones</a>.<br>
Also introducing <a href="/api/scheduled-messages">replies to scheduled messages</a>, <a href="/method/channels.deleteHistory">deletion of all our supergroup messages for everyone</a>, <a href="/constructor/sponsoredMessage">recommended sponsored messages</a>, <a href="/constructor/config">forced IPv6 connection attempts</a> and more specific <a href="/constructor/dcOption">DC connection settings</a>. </p>
Also introducing <a href="/api/scheduled-messages">replies to scheduled messages</a>, <a href="/method/channels.deleteHistory">deletion of all our supergroup messages for everyone</a>, <a href="/constructor/sponsoredMessage">recommended sponsored messages</a>, <a href="/constructor/config">forced IPv6 connection attempts</a> and more specific <a href="/constructor/dcOption">DC connection settings</a>.</p>
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
<ul>

View file

@ -129,7 +129,7 @@ Since <code>local_pts + pts_count &lt; pts</code> (<code>137 &lt; 140</code>), t
<li>If <code>local_seq + 1 &gt; seq_start</code>, the updates were already applied, and must be ignored.</li>
<li>If <code>local_seq + 1 &lt; seq_start</code>, there's an updates gap that must be <a href="#recovering-gaps">filled</a> (updates.getDifference must be used as with common and secret event sequences).</li>
</ul>
<p>If the updates were applied, local <em>Updates state</em> must be updated with <code>seq</code> and <code>date</code> from the constructor.</p>
<p>If the updates were applied, local <em>Updates state</em> must be updated with <code>seq</code> (unless it's 0) and <code>date</code> from the constructor.</p>
<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.