diff --git a/README.md b/README.md index b267f1db..14971f01 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,36 @@ You can find examples for nearly every MadelineProto function in * [`userbots/MadelineProto_bot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/MadelineProto_bot.php) - More fun shiz * [`userbots/pwrtelegram_debug_bot`](https://github.com/danog/MadelineProto/blob/master/userbots/pwrtelegram_debug_bot.php) - More fun shiz +### Storing sessions + +VERY IMPORTANT: An istance of MadelineProto MUST be serialized every time an update is fetched, and on shutdown. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: + +``` +$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +// Do stuff +\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); +// or +$MadelineProto->serialize('session.madeline'); +``` + +Or, to serialize automatically every time and update is fetched and on shutdown: + +``` +$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +$MadelineProto->session = 'session.madeline'; +``` + +This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will also be serialized automatically. + +It is still recommended to serialize the session at every update. + + +The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. +That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). +The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. + + + ## Methods A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/). @@ -646,34 +676,6 @@ td-cli wrappers are also present: you can use the tdcli_function in lua and pass For examples, see `lua/*`. -### Storing sessions - -An istance of MadelineProto can be safely serialized or unserialized. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -// Do stuff -\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); -// or -$MadelineProto->serialize('session.madeline'); -``` - -Or - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -$MadelineProto->session = 'session.madeline'; -``` - -This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will be serialized automatically. - -It is still recommended to serialize the session at every update. - - -The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. -That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). -The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. - ### Exceptions MadelineProto can throw lots of different exceptions: diff --git a/docs/API_docs/methods/account_getPasswordSettings.md b/docs/API_docs/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/docs/API_docs/methods/account_getPasswordSettings.md +++ b/docs/API_docs/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/docs/index.md b/docs/index.md index 6a7b33f5..628ecb5a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -154,6 +154,36 @@ You can find examples for nearly every MadelineProto function in * [`userbots/MadelineProto_bot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/MadelineProto_bot.php) - More fun shiz * [`userbots/pwrtelegram_debug_bot`](https://github.com/danog/MadelineProto/blob/master/userbots/pwrtelegram_debug_bot.php) - More fun shiz +### Storing sessions + +VERY IMPORTANT: An istance of MadelineProto MUST be serialized every time an update is fetched, and on shutdown. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: + +``` +$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +// Do stuff +\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); +// or +$MadelineProto->serialize('session.madeline'); +``` + +Or, to serialize automatically every time and update is fetched and on shutdown: + +``` +$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +$MadelineProto->session = 'session.madeline'; +``` + +This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will also be serialized automatically. + +It is still recommended to serialize the session at every update. + + +The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. +That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). +The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. + + + ## Methods A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/). @@ -650,34 +680,6 @@ td-cli wrappers are also present: you can use the tdcli_function in lua and pass For examples, see `lua/*`. -### Storing sessions - -An istance of MadelineProto can be safely serialized or unserialized. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -// Do stuff -\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); -// or -$MadelineProto->serialize('session.madeline'); -``` - -Or - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -$MadelineProto->session = 'session.madeline'; -``` - -This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will be serialized automatically. - -It is still recommended to serialize the session at every update. - - -The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. -That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). -The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. - ### Exceptions MadelineProto can throw lots of different exceptions: diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index dee9398d..a7235adf 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -30,6 +30,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index dee9398d..a7235adf 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -30,6 +30,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index 11b0bd9a..6fd0b39c 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -31,6 +31,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index 52865cfc..564afece 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -31,6 +31,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index a4a4c78e..09e8c5c1 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -32,6 +32,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index 1b391a1c..728d7e8a 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -24,6 +24,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 2e08f98c..5df4947c 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -34,6 +34,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 2e08f98c..5df4947c 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -34,6 +34,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index 0c9a7f05..3454bec0 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index 0c9a7f05..3454bec0 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index 0c9a7f05..3454bec0 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index 0c9a7f05..3454bec0 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index 0c9a7f05..3454bec0 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index 83220f10..a9784011 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v65/methods/channels_deleteMessages.md b/old_docs/API_docs_v65/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_exportInvite.md b/old_docs/API_docs_v65/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v65/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v65/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getMessages.md b/old_docs/API_docs_v65/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v65/methods/channels_getMessages.md +++ b/old_docs/API_docs_v65/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_importCard.md b/old_docs/API_docs_v65/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v65/methods/contacts_importCard.md +++ b/old_docs/API_docs_v65/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v66/methods/channels_deleteMessages.md b/old_docs/API_docs_v66/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_exportInvite.md b/old_docs/API_docs_v66/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v66/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v66/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getMessages.md b/old_docs/API_docs_v66/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v66/methods/channels_getMessages.md +++ b/old_docs/API_docs_v66/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_importCard.md b/old_docs/API_docs_v66/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v66/methods/contacts_importCard.md +++ b/old_docs/API_docs_v66/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v68/methods/channels_deleteMessages.md b/old_docs/API_docs_v68/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_exportInvite.md b/old_docs/API_docs_v68/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v68/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v68/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getMessages.md b/old_docs/API_docs_v68/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v68/methods/channels_getMessages.md +++ b/old_docs/API_docs_v68/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_importCard.md b/old_docs/API_docs_v68/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v68/methods/contacts_importCard.md +++ b/old_docs/API_docs_v68/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long| diff --git a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md index 623cdd16..02cb77f7 100644 --- a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md @@ -18,6 +18,13 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| + + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index c08e60e1..9ba02e9e 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -25,6 +25,7 @@ description: channels.createChannel parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v70/methods/channels_deleteMessages.md b/old_docs/API_docs_v70/methods/channels_deleteMessages.md index 91dd2fce..b3481294 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/channels_deleteMessages.md @@ -24,6 +24,7 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index bb5dad6a..04e8ce12 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_exportInvite.md b/old_docs/API_docs_v70/methods/channels_exportInvite.md index 95a25461..2ed80f6c 100644 --- a/old_docs/API_docs_v70/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v70/methods/channels_exportInvite.md @@ -24,6 +24,7 @@ description: channels.exportInvite parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INVITE_HASH_EXPIRED|The invite link has expired| ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getMessages.md b/old_docs/API_docs_v70/methods/channels_getMessages.md index 2df5c4ee..ac27dd82 100644 --- a/old_docs/API_docs_v70/methods/channels_getMessages.md +++ b/old_docs/API_docs_v70/methods/channels_getMessages.md @@ -24,6 +24,7 @@ description: channels.getMessages parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_importCard.md b/old_docs/API_docs_v70/methods/contacts_importCard.md index 1673b210..a6abf56d 100644 --- a/old_docs/API_docs_v70/methods/contacts_importCard.md +++ b/old_docs/API_docs_v70/methods/contacts_importCard.md @@ -22,6 +22,7 @@ description: contacts.importCard parameters, return type and example | Error | Description | |----------|---------------| +|EXPORT_CARD_INVALID|Provided card is invalid| |NEED_MEMBER_INVALID|The provided member is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index 64dffa42..8bc79038 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -32,6 +32,7 @@ description: messages.editMessage parameters, return type and example |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MESSAGE_AUTHOR_REQUIRED|Message author required| |MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| +|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_NOT_MODIFIED|The message text has not changed| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index 33882686..27fb7236 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -38,6 +38,7 @@ description: messages.sendMessage parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MESSAGE_EMPTY|The provided message is empty| |MESSAGE_TOO_LONG|The provided message is too long|