From f7ad740fdf0c63abd071177b611df3a8eec30e99 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 26 Sep 2017 15:12:12 +0200 Subject: [PATCH] Docufix --- README.md | 2 +- docs/API_docs/methods/channels_getParticipant.md | 1 + docs/API_docs/methods/messages_deleteMessages.md | 7 +++++++ docs/API_docs/methods/messages_forwardMessages.md | 1 + docs/API_docs/methods/messages_getHistory.md | 1 + docs/index.md | 12 ++++++------ .../API_docs_v18/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v18/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v18/methods/messages_getHistory.md | 1 + .../API_docs_v23/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v23/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v23/methods/messages_getHistory.md | 1 + .../API_docs_v25/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v25/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v25/methods/messages_getHistory.md | 1 + .../API_docs_v27/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v27/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v27/methods/messages_getHistory.md | 1 + .../API_docs_v33/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v33/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v33/methods/messages_getHistory.md | 1 + .../API_docs_v38/methods/channels_getParticipant.md | 1 + .../API_docs_v38/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v38/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v38/methods/messages_getHistory.md | 1 + .../API_docs_v40/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v40/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v40/methods/messages_getHistory.md | 1 + .../API_docs_v41/methods/channels_getParticipant.md | 1 + .../API_docs_v41/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v41/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v41/methods/messages_getHistory.md | 1 + .../API_docs_v42/methods/channels_getParticipant.md | 1 + .../API_docs_v42/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v42/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v42/methods/messages_getHistory.md | 1 + .../API_docs_v44/methods/channels_getParticipant.md | 1 + .../API_docs_v44/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v44/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v44/methods/messages_getHistory.md | 1 + .../API_docs_v45/methods/channels_getParticipant.md | 1 + .../API_docs_v45/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v45/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v45/methods/messages_getHistory.md | 1 + .../API_docs_v46/methods/channels_getParticipant.md | 1 + .../API_docs_v46/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v46/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v46/methods/messages_getHistory.md | 1 + .../API_docs_v51/methods/channels_getParticipant.md | 1 + .../API_docs_v51/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v51/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v51/methods/messages_getHistory.md | 1 + .../API_docs_v53/methods/channels_getParticipant.md | 1 + .../API_docs_v53/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v53/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v53/methods/messages_getHistory.md | 1 + .../API_docs_v55/methods/channels_getParticipant.md | 1 + .../API_docs_v55/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v55/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v55/methods/messages_getHistory.md | 1 + .../API_docs_v57/methods/channels_getParticipant.md | 1 + .../API_docs_v57/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v57/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v57/methods/messages_getHistory.md | 1 + .../API_docs_v62/methods/channels_getParticipant.md | 1 + .../API_docs_v62/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v62/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v62/methods/messages_getHistory.md | 1 + .../API_docs_v65/methods/channels_getParticipant.md | 1 + .../API_docs_v65/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v65/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v65/methods/messages_getHistory.md | 1 + .../API_docs_v66/methods/channels_getParticipant.md | 1 + .../API_docs_v66/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v66/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v66/methods/messages_getHistory.md | 1 + .../API_docs_v68/methods/channels_getParticipant.md | 1 + .../API_docs_v68/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v68/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v68/methods/messages_getHistory.md | 1 + .../API_docs_v70/methods/channels_getParticipant.md | 1 + .../API_docs_v70/methods/messages_deleteMessages.md | 7 +++++++ .../API_docs_v70/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v70/methods/messages_getHistory.md | 1 + 84 files changed, 221 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 74458b9b..1fdf7b29 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ If you're selling a MadelineProto base too, you really should consider donating ### Settings The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function. -See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L405) for the default values for the settings arrays and explanations for every setting. +See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L448) for the default values for the settings arrays and explanations for every setting. You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. Example: diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/docs/API_docs/methods/messages_deleteMessages.md b/docs/API_docs/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/docs/API_docs/methods/messages_deleteMessages.md +++ b/docs/API_docs/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/docs/index.md b/docs/index.md index 28a84f85..66df286d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -107,7 +107,7 @@ git submodule add https://github.com/danog/MadelineProto cd MadelineProto composer update cp .env.example .env -cp -a *php tests bots .env* .. +cp -a *php tests userbots .env* .. ``` Now open `.env` and edit its values as needed. @@ -119,9 +119,9 @@ You can find examples for nearly every MadelineProto function in * [`tests/testing.php`](https://github.com/danog/MadelineProto/blob/master/tests/testing.php) - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos. * [`bot.php`](https://github.com/danog/MadelineProto/blob/master/bot.php) - examples for sending normal messages, downloading any media * [`magna.php`](https://github.com/danog/MadelineProto/blob/master/magna.php) - examples for receiving calls -* [`bots/pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/bots/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot -* [`bots/MadelineProto_bot.php`](https://github.com/danog/MadelineProto/blob/master/bots/MadelineProto_bot.php) - More fun shiz -* [`bots/pwrtelegram_debug_bot`](https://github.com/danog/MadelineProto/blob/master/bots/pwrtelegram_debug_bot.php) - More fun shiz +* [`userbots/pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot +* [`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 ## Methods @@ -221,7 +221,7 @@ $MadelineProto = new \danog\MadelineProto\API(); If you have some questions about the usage of the methods of this library, you can join the [support group](https://telegram.me/pwrtelegramgroup) or contact [@danogentili](https://telegram.me/danogentili). -But first, please read this WHOLE page very carefully, follow all links to external documentation, and read all examples in the repo (bot.php, bots/, tests/testing.php). +But first, please read this WHOLE page very carefully, follow all links to external documentation, and read all examples in the repo (bot.php, userbots/, tests/testing.php). If you don't understand something, read everything again. @@ -239,7 +239,7 @@ If you're selling a MadelineProto base too, you really should consider donating ### Settings The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function. -See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L405) for the default values for the settings arrays and explanations for every setting. +See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L448) for the default values for the settings arrays and explanations for every setting. You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteMessages.md b/old_docs/API_docs_v18/methods/messages_deleteMessages.md index e29549d5..ae8ed6b1 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v18/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 2da373b7..7cdc4977 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index 15de77b5..8d431072 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -25,6 +25,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v23/methods/messages_deleteMessages.md b/old_docs/API_docs_v23/methods/messages_deleteMessages.md index e29549d5..ae8ed6b1 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v23/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 2da373b7..7cdc4977 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index 15de77b5..8d431072 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -25,6 +25,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v25/methods/messages_deleteMessages.md b/old_docs/API_docs_v25/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v25/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 2da373b7..7cdc4977 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index 15de77b5..8d431072 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -25,6 +25,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v27/methods/messages_deleteMessages.md b/old_docs/API_docs_v27/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v27/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 2e9d7c55..ea9b74b8 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index 15de77b5..8d431072 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -25,6 +25,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v33/methods/messages_deleteMessages.md b/old_docs/API_docs_v33/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v33/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 2e9d7c55..ea9b74b8 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index 15de77b5..8d431072 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -25,6 +25,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v38/methods/messages_deleteMessages.md b/old_docs/API_docs_v38/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index 93e80c63..05b56196 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v40/methods/messages_deleteMessages.md b/old_docs/API_docs_v40/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 2e9d7c55..ea9b74b8 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index 6c89314f..db435848 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -26,6 +26,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v41/methods/messages_deleteMessages.md b/old_docs/API_docs_v41/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index 103e1df1..c7701c8d 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v42/methods/messages_deleteMessages.md b/old_docs/API_docs_v42/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index 103e1df1..c7701c8d 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v44/methods/messages_deleteMessages.md b/old_docs/API_docs_v44/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index 103e1df1..c7701c8d 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v45/methods/messages_deleteMessages.md b/old_docs/API_docs_v45/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index 103e1df1..c7701c8d 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v46/methods/messages_deleteMessages.md b/old_docs/API_docs_v46/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index 103e1df1..c7701c8d 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index ed037b4a..752fa7a4 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -27,6 +27,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v51/methods/messages_deleteMessages.md b/old_docs/API_docs_v51/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index e50b70a6..a9f7a706 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v53/methods/messages_deleteMessages.md b/old_docs/API_docs_v53/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 382c4a30..b3cfee16 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v55/methods/messages_deleteMessages.md b/old_docs/API_docs_v55/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 382c4a30..b3cfee16 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v57/methods/messages_deleteMessages.md b/old_docs/API_docs_v57/methods/messages_deleteMessages.md index 6ff68f5b..65dbbc4a 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/messages_deleteMessages.md @@ -18,6 +18,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v62/methods/messages_deleteMessages.md b/old_docs/API_docs_v62/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v65/methods/messages_deleteMessages.md b/old_docs/API_docs_v65/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_getHistory.md b/old_docs/API_docs_v65/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v65/methods/messages_getHistory.md +++ b/old_docs/API_docs_v65/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v66/methods/messages_deleteMessages.md b/old_docs/API_docs_v66/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_getHistory.md b/old_docs/API_docs_v66/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v66/methods/messages_getHistory.md +++ b/old_docs/API_docs_v66/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v68/methods/messages_deleteMessages.md b/old_docs/API_docs_v68/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_getHistory.md b/old_docs/API_docs_v68/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v68/methods/messages_getHistory.md +++ b/old_docs/API_docs_v68/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index 289293ac..d2c78746 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -25,6 +25,7 @@ description: channels.getParticipant 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| +|USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v70/methods/messages_deleteMessages.md b/old_docs/API_docs_v70/methods/messages_deleteMessages.md index 2949f64a..2b88a73f 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/messages_deleteMessages.md @@ -19,6 +19,13 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index eb1f9872..50db3dd0 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -32,6 +32,7 @@ description: messages.forwardMessages parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_getHistory.md b/old_docs/API_docs_v70/methods/messages_getHistory.md index 00972412..d6cd8b10 100644 --- a/old_docs/API_docs_v70/methods/messages_getHistory.md +++ b/old_docs/API_docs_v70/methods/messages_getHistory.md @@ -28,6 +28,7 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ID_INVALID|The provided chat id is invalid|