Update docs

This commit is contained in:
Daniil Gentili 2017-10-04 15:43:51 +03:00
parent 811204e62c
commit 38a76c925e
78 changed files with 160 additions and 0 deletions

View File

@ -108,6 +108,37 @@ cp -a *php tests userbots .env* ..
Now open `.env` and edit its values as needed.
OR
### Composer installation
Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file:
```
"repositories": [
{
"type": "git",
"url": "https://github.com/danog/phpseclib"
}, {
"type": "git",
"url": "https://github.com/danog/MadelineProto"
}
],
```
Make sure you also have these set in the composer.json:
```
"minimum-stability": "dev",
"prefer-stable": true,
```
Then you can require the package like this:
```
composer require "danog/madelineproto:dev-master"
```
## Examples

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -33,8 +33,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -112,6 +112,37 @@ cp -a *php tests userbots .env* ..
Now open `.env` and edit its values as needed.
OR
### Composer installation
Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file:
```
"repositories": [
{
"type": "git",
"url": "https://github.com/danog/phpseclib"
}, {
"type": "git",
"url": "https://github.com/danog/MadelineProto"
}
],
```
Make sure you also have these set in the composer.json:
```
"minimum-stability": "dev",
"prefer-stable": true,
```
Then you can require the package like this:
```
composer require "danog/madelineproto:dev-master"
```
## Examples

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -35,6 +35,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -35,6 +35,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -37,6 +37,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -41,6 +41,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -39,6 +39,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -40,6 +40,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -39,6 +39,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -42,6 +42,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -41,6 +41,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -42,6 +42,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -41,6 +41,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -42,6 +42,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -41,6 +41,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -42,6 +42,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -41,6 +41,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -42,6 +42,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -41,6 +41,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -43,6 +43,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -43,6 +43,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -30,8 +30,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -31,6 +31,7 @@ description: messages.editMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
|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_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|

View File

@ -44,6 +44,7 @@ description: messages.forwardMessages parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
### Example:

View File

@ -31,8 +31,10 @@ description: messages.search parameters, return type and example
| Error | Description |
|----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
|USER_ID_INVALID|The provided user ID is invalid|
### Example:

View File

@ -43,6 +43,7 @@ description: messages.sendMessage parameters, return type and example
|MESSAGE_TOO_LONG|The provided message is too long|
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|