Update content of files

This commit is contained in:
GitHub Action 2024-08-05 10:33:44 +00:00
parent f4014699e1
commit 81acf9b569
2 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ foreach (quick_replies as quick_reply) {
hash_ints[] = top_message.edit_date || 0;
}</code></pre>
<p>The method will return <a href="/constructor/messages.quickRepliesNotModified">messages.quickRepliesNotModified</a> if the passed hash is equal to the server-side hash, meaning that the order, names and last messages of the quick replies haven't changed. </p>
<p>Editing some intermediate message in a quick reply will not change the hash, which is why <a href="/method/messages.getQuickReplyMessages">messages.getQuickReplyMessages</a> should be used to fetch (a subset or all) messages in a quick reply shortcut, and its hash is generated as follows (from the full message list of a shortcut, obviously):</p>
<p>Editing some intermediate message in a quick reply will not change the hash, which is why <a href="/method/messages.getQuickReplyMessages">messages.getQuickReplyMessages</a> should be used to fetch (a subset or all) messages in a quick reply shortcut, and its hash is generated as follows:</p>
<pre><code>hash_ints = [];
foreach (messages as message) {
hash_ints[] = message.id;

View file

@ -91,7 +91,7 @@
<tr>
<td><strong>deleted</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.13?<a href="/constructor/true">true</a></td>
<td>Whether the account of this user was deleted</td>
<td>Whether the account of this user was deleted. <br>Changes to this flag should invalidate the local <a href="/constructor/userFull">userFull</a> cache for this user ID.</td>
</tr>
<tr>
<td><strong>bot</strong></td>
@ -226,7 +226,7 @@
<tr>
<td><strong>username</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/string">string</a></td>
<td>Main active username. <br>When updating the <a href="/api/peers">local peer database</a>, apply changes to this field only if: <br>- The <code>min</code> flag is not set OR <br>- The <code>min</code> flag is set AND <br>- The <code>min</code> flag of the locally cached user entry is set.</td>
<td>Main active username. <br>When updating the <a href="/api/peers">local peer database</a>, apply changes to this field only if: <br>- The <code>min</code> flag is not set OR <br>- The <code>min</code> flag is set AND <br>- The <code>min</code> flag of the locally cached user entry is set. <br>Changes to this flag should invalidate the local <a href="/constructor/userFull">userFull</a> cache for this user ID if the above conditions are respected and the <code>bot_can_edit</code> flag is also set.</td>
</tr>
<tr>
<td><strong>phone</strong></td>