mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 15:31:11 +01:00
Update content of files
This commit is contained in:
parent
a38ad0cf4b
commit
043ad0cb27
2 changed files with 9 additions and 7 deletions
|
@ -49,7 +49,7 @@ An error is characterized by several parameters:</p>
|
|||
<h4><a class="anchor" href="#error-type" id="error-type" name="error-type"><i class="anchor-icon"></i></a>Error Type</h4>
|
||||
<p>A string literal in the form of <code>/[A-Z_0-9]+/</code>, which summarizes the problem. For example, <code>AUTH_KEY_UNREGISTERED</code>. This is an optional parameter.</p>
|
||||
<h4><a class="anchor" href="#error-database" id="error-database" name="error-database"><i class="anchor-icon"></i></a>Error Database</h4>
|
||||
<p>A full machine-readable JSON list of RPC errors that can be returned by all methods in the API can be found <a href="/file/464001530/11880/Trl4csyCMqI.87735.json/a913651b756424f1e4">here »</a>, what follows is a description of its fields: </p>
|
||||
<p>A full machine-readable JSON list of RPC errors that can be returned by all methods in the API can be found <a href="/file/464001461/f908/XnOjNzqzywo.87735.json/4b8e219e468c83bb0d">here »</a>, what follows is a description of its fields: </p>
|
||||
<ul>
|
||||
<li><code>errors</code> - All error messages and codes for each method (object).<ul>
|
||||
<li>Keys: Error codes as strings (numeric strings)</li>
|
||||
|
@ -150,7 +150,9 @@ An error is characterized by several parameters:</p>
|
|||
<h3><a class="anchor" href="#404-not-found" id="404-not-found" name="404-not-found"><i class="anchor-icon"></i></a>404 NOT_FOUND</h3>
|
||||
<p>An attempt to invoke a non-existent object, such as a method.</p>
|
||||
<h3><a class="anchor" href="#406-not-acceptable" id="406-not-acceptable" name="406-not-acceptable"><i class="anchor-icon"></i></a>406 NOT_ACCEPTABLE</h3>
|
||||
<p>Similar to <a href="#400-bad-request">400 BAD_REQUEST</a>, but the app should not display any error messages to user in UI as a result of this response. The error message will be delivered via <a href="/constructor/updateServiceNotification">updateServiceNotification</a> instead.</p>
|
||||
<p>Similar to <a href="#400-bad-request">400 BAD_REQUEST</a>, but the app must display the error to the user a bit differently.<br>
|
||||
Do not display any visible error to the user when receiving the <code>rpc_error</code> constructor: instead, wait for an <a href="/constructor/updateServiceNotification">updateServiceNotification</a> update, and handle it as usual.<br>
|
||||
Basically, an <a href="/constructor/updateServiceNotification">updateServiceNotification</a> <code>popup</code> update will be emitted indipendently immediately after emission of a 406 <code>rpc_error</code>: the update will contain the actual localized error message to show to the user with a UI popup. </p>
|
||||
<p>An exception to this is the <code>AUTH_KEY_DUPLICATED</code> error, which is only emitted if any of the non-media DC detects that an authorized session is sending requests in parallel from two separate TCP connections, from the same or different IP addresses.<br>
|
||||
Note that parallel connections are still allowed and actually recommended for media DCs.
|
||||
Also note that by session we mean a logged-in session identified by an <a href="/constructor/authorization">authorization</a> constructor, fetchable using <a href="/method/account.getAuthorizations">account.getAuthorizations</a>, not an MTProto session. </p>
|
||||
|
|
|
@ -104,27 +104,27 @@
|
|||
<tr>
|
||||
<td><strong>select_animation</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Document">Document</a></td>
|
||||
<td>The animated sticker to show when the user hovers over this reaction in the quick reaction menu or reaction dropdown (not from the list of reactions added by other users)</td>
|
||||
<td>The animated sticker to show when the user hovers over the reaction</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>activate_animation</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Document">Document</a></td>
|
||||
<td>The animated sticker to show when the user presses on a reaction in the quick reaction menu or reaction dropdown (not from the list of reactions added by other users)</td>
|
||||
<td>The animated sticker to show when the reaction is chosen and activated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>effect_animation</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Document">Document</a></td>
|
||||
<td>The background effect (still an animated sticker) to play under the <code>activate_animation</code>, when the reaction is chosen and activated when the user presses on it</td>
|
||||
<td>The background effect (still an animated sticker) to play under the <code>activate_animation</code>, when the reaction is chosen and activated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>around_animation</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/Document">Document</a></td>
|
||||
<td>The animation that plays around the button when you press an existing reaction in the list of reactions added by other users (played together with <code>center_icon</code>).</td>
|
||||
<td>The animation that plays around the button when you press an existing reaction (played together with <code>center_icon</code>).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>center_icon</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/Document">Document</a></td>
|
||||
<td>The animation of the emoji inside the button when you press an existing reaction in the list of reactions added by other users (played together with <code>around_animation</code>).</td>
|
||||
<td>The animation of the emoji inside the button when you press an existing reaction (played together with <code>around_animation</code>).</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue