This commit is contained in:
Daniil Gentili 2017-12-21 09:52:23 +00:00
parent 6a677c0baf
commit deceb018bc
43 changed files with 119 additions and 7 deletions

View File

@ -68,7 +68,10 @@ This library can also be used to create lua telegram bots (like bot API bots, on
## Requirements ## Requirements
This project can only run on *PHP 7* and *HHVM*, both 32 bit and 64 bit systems are supported. This project can only run on *PHP 7* and *HHVM*, both 32 bit and 64 bit systems are supported (x86, x86_64, armel, armhf, arm64, mipsel, mips64, powerpc and so on).
You can also run it on PHP 5 using [7to5](https://github.com/spatie/7to5).
To install *all of the requirements* on `Ubuntu`, `Debian`, `Devuan`, or any other `Debian-based` distro, run the following command in your command line: To install *all of the requirements* on `Ubuntu`, `Debian`, `Devuan`, or any other `Debian-based` distro, run the following command in your command line:
@ -77,7 +80,9 @@ curl https://daniil.it/php.sh | sudo bash -e
``` ```
On other platforms, use [Google](https://google.com) to find out how to install the following dependencies: On other platforms, use [Google](https://google.com) to find out how to install the following dependencies.
**NOTE**: Usually most of these extensions are already installed by default when you download PHP from your package manager (ie apt-get), so you can skip this step. When installing MadelineProto, composer will inform you if anything is missing.
You *must* install the `php-mbstring`, `php-curl`, `php-sockets`, `php-xml`, `php-zip` extensions. You *must* install the `php-mbstring`, `php-curl`, `php-sockets`, `php-xml`, `php-zip` extensions.
@ -111,7 +116,7 @@ cp -a *php tests userbots .env* ..
Now open `.env` and edit its values as needed. Now open `.env` and edit its values as needed.
OR OR
/
### Composer installation ### Composer installation
Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file: Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file:

View File

@ -0,0 +1,48 @@
---
title: decryptedMessage
description: decryptedMessage attributes, type and example
---
## Constructor: decryptedMessage\_73
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|ttl|[int](../types/int.md) | Yes|
|message|[string](../types/string.md) | Yes|
|media|[DecryptedMessageMedia](../types/DecryptedMessageMedia.md) | Optional|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|via\_bot\_name|[string](../types/string.md) | Optional|
|reply\_to\_random\_id|[long](../types/long.md) | Optional|
|grouped\_id|[long](../types/long.md) | Optional|
### Type: [DecryptedMessage](../types/DecryptedMessage.md)
### Example:
```
$decryptedMessage_73 = ['_' => 'decryptedMessage', 'ttl' => int, 'message' => 'string', 'media' => DecryptedMessageMedia, 'entities' => [MessageEntity], 'via_bot_name' => 'string', 'reply_to_random_id' => long, 'grouped_id' => long];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessage", "ttl": int, "message": "string", "media": DecryptedMessageMedia, "entities": [MessageEntity], "via_bot_name": "string", "reply_to_random_id": long, "grouped_id": long}
```
Or, if you're into Lua:
```
decryptedMessage_73={_='decryptedMessage', ttl=int, message='string', media=DecryptedMessageMedia, entities={MessageEntity}, via_bot_name='string', reply_to_random_id=long, grouped_id=long}
```

View File

@ -309,7 +309,7 @@ description: List of constructors
<br><br>[$decryptedDataBlock](../constructors/decryptedDataBlock.md) = \['voice_call_id' => [int128](../types/int128.md), 'in_seq_no' => [int](../types/int.md), 'out_seq_no' => [int](../types/int.md), 'recent_received_mask' => [int](../types/int.md), 'proto' => [int](../types/int.md), 'extra' => [string](../types/string.md), 'raw_data' => [string](../types/string.md), \];<a name="decryptedDataBlock"></a> <br><br>[$decryptedDataBlock](../constructors/decryptedDataBlock.md) = \['voice_call_id' => [int128](../types/int128.md), 'in_seq_no' => [int](../types/int.md), 'out_seq_no' => [int](../types/int.md), 'recent_received_mask' => [int](../types/int.md), 'proto' => [int](../types/int.md), 'extra' => [string](../types/string.md), 'raw_data' => [string](../types/string.md), \];<a name="decryptedDataBlock"></a>
*** ***
<br><br>[$decryptedMessage\_45](../constructors/decryptedMessage_45.md) = \['ttl' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [DecryptedMessageMedia](../types/DecryptedMessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'via_bot_name' => [string](../types/string.md), 'reply_to_random_id' => [long](../types/long.md), \];<a name="decryptedMessage_45"></a> <br><br>[$decryptedMessage\_73](../constructors/decryptedMessage_73.md) = \['ttl' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [DecryptedMessageMedia](../types/DecryptedMessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'via_bot_name' => [string](../types/string.md), 'reply_to_random_id' => [long](../types/long.md), 'grouped_id' => [long](../types/long.md), \];<a name="decryptedMessage_73"></a>
*** ***
<br><br>[$decryptedMessageActionAbortKey\_20](../constructors/decryptedMessageActionAbortKey_20.md) = \['exchange_id' => [long](../types/long.md), \];<a name="decryptedMessageActionAbortKey_20"></a> <br><br>[$decryptedMessageActionAbortKey\_20](../constructors/decryptedMessageActionAbortKey_20.md) = \['exchange_id' => [long](../types/long.md), \];<a name="decryptedMessageActionAbortKey_20"></a>

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -19,6 +19,8 @@ description: constructors and methods of type DecryptedMessage
[decryptedMessage\_45](../constructors/decryptedMessage_45.md) [decryptedMessage\_45](../constructors/decryptedMessage_45.md)
[decryptedMessage\_73](../constructors/decryptedMessage_73.md)
### Methods that return an object of this type (methods): ### Methods that return an object of this type (methods):

View File

@ -72,7 +72,10 @@ This library can also be used to create lua telegram bots (like bot API bots, on
## Requirements ## Requirements
This project can only run on *PHP 7* and *HHVM*, both 32 bit and 64 bit systems are supported. This project can only run on *PHP 7* and *HHVM*, both 32 bit and 64 bit systems are supported (x86, x86_64, armel, armhf, arm64, mipsel, mips64, powerpc and so on).
You can also run it on PHP 5 using [7to5](https://github.com/spatie/7to5).
To install *all of the requirements* on `Ubuntu`, `Debian`, `Devuan`, or any other `Debian-based` distro, run the following command in your command line: To install *all of the requirements* on `Ubuntu`, `Debian`, `Devuan`, or any other `Debian-based` distro, run the following command in your command line:
@ -81,7 +84,9 @@ curl https://daniil.it/php.sh | sudo bash -e
``` ```
On other platforms, use [Google](https://google.com) to find out how to install the following dependencies: On other platforms, use [Google](https://google.com) to find out how to install the following dependencies.
**NOTE**: Usually most of these extensions are already installed by default when you download PHP from your package manager (ie apt-get), so you can skip this step. When installing MadelineProto, composer will inform you if anything is missing.
You *must* install the `php-mbstring`, `php-curl`, `php-sockets`, `php-xml`, `php-zip` extensions. You *must* install the `php-mbstring`, `php-curl`, `php-sockets`, `php-xml`, `php-zip` extensions.
@ -115,7 +120,7 @@ cp -a *php tests userbots .env* ..
Now open `.env` and edit its values as needed. Now open `.env` and edit its values as needed.
OR OR
/
### Composer installation ### Composer installation
Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file: Once you have all the requirements installed properly (on dev as well as production), add this to the ```composer.json``` file:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -29,6 +29,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -29,6 +29,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -28,6 +28,7 @@ description: auth.bindTempAuthKey parameters, return type and example
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| |ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|INPUT_REQUEST_TOO_LONG|The request is too big| |INPUT_REQUEST_TOO_LONG|The request is too big|
|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| |TEMP_AUTH_KEY_EMPTY|No temporary auth key provided|
|Timeout|A timeout occurred while fetching data from the bot|
### Example: ### Example:

View File

@ -31,6 +31,8 @@ description: messages.sendInlineBotResult parameters, return type and example
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|