Update docs
This commit is contained in:
parent
811204e62c
commit
38a76c925e
31
README.md
31
README.md
@ -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
|
||||
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
@ -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|
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user