From fa4f3753ece4c948dab30a5fc212e40d71d36160 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 13 Sep 2022 15:57:04 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/errors.html | 6 +++--- data/web/corefork.telegram.org/api/layers.html | 2 +- .../method/account.resetPassword | 17 +++++++++++++++++ .../method/bots.resetBotCommands | 17 +++++++++++++++++ .../method/bots.setBotCommands | 5 +++++ .../method/messages.translateText | 5 +++++ .../method/stats.getMessagePublicForwards | 5 +++++ 7 files changed, 53 insertions(+), 4 deletions(-) diff --git a/data/web/corefork.telegram.org/api/errors.html b/data/web/corefork.telegram.org/api/errors.html index 60228a2b4c..02d3f7eceb 100644 --- a/data/web/corefork.telegram.org/api/errors.html +++ b/data/web/corefork.telegram.org/api/errors.html @@ -42,14 +42,14 @@

Error handling

-

There will be errors when working with the API, and they must be correctly handled on the client.

-

An error is characterized by several parameters:

+

There will be errors when working with the API, and they must be correctly handled on the client.
+An error is characterized by several parameters:

Error Code

Numerical value similar to HTTP status. Contains information on the type of error that occurred: for example, a data input error, privacy error, or server error. This is a required parameter.

Error Type

A string literal in the form of /[A-Z_0-9]+/, which summarizes the problem. For example, AUTH_KEY_UNREGISTERED. This is an optional parameter.

Error Database

-

A full machine-readable JSON list of RPC errors that can be returned by all methods in the API can be found here », what follows is a description of its fields:

+

A full machine-readable JSON list of RPC errors that can be returned by all methods in the API can be found here », what follows is a description of its fields:

  • errors - All error messages and codes for each method (object).
diff --git a/data/web/corefork.telegram.org/method/bots.resetBotCommands b/data/web/corefork.telegram.org/method/bots.resetBotCommands index 7c2c2d1a2a..fa48f6119c 100644 --- a/data/web/corefork.telegram.org/method/bots.resetBotCommands +++ b/data/web/corefork.telegram.org/method/bots.resetBotCommands @@ -83,6 +83,23 @@

Result

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LANG_CODE_INVALIDThe specified language code is invalid.

Bots can use this method

diff --git a/data/web/corefork.telegram.org/method/bots.setBotCommands b/data/web/corefork.telegram.org/method/bots.setBotCommands index 4c441731d2..52a82aad78 100644 --- a/data/web/corefork.telegram.org/method/bots.setBotCommands +++ b/data/web/corefork.telegram.org/method/bots.setBotCommands @@ -113,6 +113,11 @@ LANG_CODE_INVALID The specified language code is invalid. + +400 +USER_BOT_REQUIRED +This method can only be called by a bot. +

Bots can use this method

diff --git a/data/web/corefork.telegram.org/method/messages.translateText b/data/web/corefork.telegram.org/method/messages.translateText index 67694ac14d..7f3ac84e3e 100644 --- a/data/web/corefork.telegram.org/method/messages.translateText +++ b/data/web/corefork.telegram.org/method/messages.translateText @@ -115,6 +115,11 @@ 400 +INPUT_TEXT_EMPTY +The specified text is empty. + + +400 MSG_ID_INVALID Invalid message ID provided. diff --git a/data/web/corefork.telegram.org/method/stats.getMessagePublicForwards b/data/web/corefork.telegram.org/method/stats.getMessagePublicForwards index 0b4b1089c7..6e59c9b401 100644 --- a/data/web/corefork.telegram.org/method/stats.getMessagePublicForwards +++ b/data/web/corefork.telegram.org/method/stats.getMessagePublicForwards @@ -131,6 +131,11 @@ Will return a list of messages with pee MESSAGE_ID_INVALID The provided message id is invalid. + +400 +PEER_ID_INVALID +The provided peer id is invalid. +

Related pages