Added partial support for http/https connectins, cleaned up docs, updated to layer 62.
This commit is contained in:
parent
4a51b4ad9b
commit
080942534e
@ -1,5 +1,5 @@
|
||||
MTPROTO_NUMBER=+123456789
|
||||
MTPROTO_NUMBER=+19379829399
|
||||
MTPROTO_SETTINGS={"app_info":{"api_id":65536,"api_hash":"4251a2777e179232705e2462706f4143"}}
|
||||
TEST_USERNAME=@danogentili
|
||||
TEST_DESTINATION_GROUPS=["@pwrtelegramgroup","@pwrtelegramgroupita"]
|
||||
BOT_TOKEN=
|
||||
BOT_TOKEN=
|
||||
|
112
README.md
112
README.md
@ -31,7 +31,7 @@ git clone https://github.com/danog/MadelineProto
|
||||
cd MadelineProto
|
||||
```
|
||||
|
||||
Now copy .env.example to .env, edit the its values, read the docs and take a look at testing.php, bot.php.
|
||||
Now copy .env.example to .env, edit the its values, read the docs and take a look at tests/testing.php, bot.php.
|
||||
|
||||
### Dependencies
|
||||
|
||||
@ -53,109 +53,7 @@ $MadelineProto = new \danog\MadelineProto\API();
|
||||
### Settings
|
||||
|
||||
The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function.
|
||||
Here you can see the default values for the settings\ arrays and explanations for every setting:
|
||||
|
||||
```
|
||||
$settings = [
|
||||
'authorization' => [ // Authorization settings
|
||||
'default_temp_auth_key_expires_in' => 31557600, // validity of temporary keys and the binding of the temporary and permanent keys
|
||||
'rsa_key' => '-----BEGIN RSA PUBLIC KEY-----
|
||||
MIIBCgKCAQEAwVACPi9w23mF3tBkdZz+zwrzKOaaQdr01vAbU4E1pvkfj4sqDsm6
|
||||
lyDONS789sVoD/xCS9Y0hkkC3gtL1tSfTlgCMOOul9lcixlEKzwKENj1Yz/s7daS
|
||||
an9tqw3bfUV/nqgbhGX81v/+7RFAEd+RwFnK7a+XYl9sluzHRyVVaTTveB2GazTw
|
||||
Efzk2DWgkBluml8OREmvfraX3bkHZJTKX4EQSjBbbdJ2ZXIsRrYOXfaA+xayEGB+
|
||||
8hdlLmAjbCVfaigxX0CDqWeR1yFL9kwd9P0NsZRPsmoqVwMbMu7mStFai6aIhc3n
|
||||
Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
-----END RSA PUBLIC KEY-----', // RSA public key
|
||||
],
|
||||
'connection' => [ // List of datacenters/subdomains where to connect
|
||||
'ssl_subdomains' => [ // Subdomains of web.telegram.org for https protocol
|
||||
1 => 'pluto',
|
||||
2 => 'venus',
|
||||
3 => 'aurora',
|
||||
4 => 'vesta',
|
||||
5 => 'flora', // musa oh wait no :(
|
||||
],
|
||||
'test' => [ // Test datacenters
|
||||
'ipv4' => [ // ipv4 addresses
|
||||
2 => [ // The rest will be fetched using help.getConfig
|
||||
'ip_address' => '149.154.167.40',
|
||||
'port' => 443,
|
||||
'media_only' => false,
|
||||
'tcpo_only' => false
|
||||
]
|
||||
],
|
||||
'ipv6' => [ // ipv6 addresses
|
||||
2 => [ // The rest will be fetched using help.getConfig
|
||||
'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000e',
|
||||
'port' => 443,
|
||||
'media_only' => false,
|
||||
'tcpo_only' => false
|
||||
]
|
||||
]
|
||||
],
|
||||
'main' => [ // Main datacenters
|
||||
'ipv4' => [ // ipv4 addresses
|
||||
2 => [ // The rest will be fetched using help.getConfig
|
||||
'ip_address' => '149.154.167.51',
|
||||
'port' => 443,
|
||||
'media_only' => false,
|
||||
'tcpo_only' => false
|
||||
]
|
||||
],
|
||||
'ipv6' => [ // ipv6 addresses
|
||||
2 => [ // The rest will be fetched using help.getConfig
|
||||
'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000a',
|
||||
'port' => 443,
|
||||
'media_only' => false,
|
||||
'tcpo_only' => false
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'connection_settings' => [ // connection settings
|
||||
'all' => [ // Connection settings will be applied on datacenter ids matching the key of these settings subarrays, if the key is equal to all like in this case that will match all datacenters that haven't a custom settings subarray...
|
||||
'protocol' => 'tcp_full', // can be tcp_full, tcp_abridged, tcp_intermediate, http (unsupported), https (unsupported), udp (unsupported)
|
||||
'test_mode' => false, // decides whether to connect to the main telegram servers or to the testing servers (deep telegram)
|
||||
'ipv6' => $this->ipv6, // decides whether to use ipv6, ipv6 attribute of API attribute of API class contains autodetected boolean
|
||||
'timeout' => 10 // timeout for sockets
|
||||
],
|
||||
],
|
||||
'app_info' => [ // obtained in https://my.telegram.org
|
||||
'api_id' => 25628,
|
||||
'api_hash' => '1fe17cda7d355166cdaa71f04122873c',
|
||||
'device_model' => php_uname('s'),
|
||||
'system_version' => php_uname('r'),
|
||||
'app_version' => 'Unicorn', // 🌚
|
||||
'lang_code' => 'en',
|
||||
],
|
||||
'tl_schema' => [ // TL scheme files
|
||||
'layer' => 57, // layer version
|
||||
'src' => [
|
||||
'mtproto' => __DIR__.'/TL_mtproto_v1.json', // mtproto TL scheme
|
||||
'telegram' => __DIR__.'/TL_telegram_v57.json', // telegram TL scheme
|
||||
],
|
||||
],
|
||||
'logger' => [ // Logger settings
|
||||
'logger' => 1, // 0 - No logger, 1 - Log to the default logger destination, 2 - Log to file defined in logger_param, 3 - Echo logs
|
||||
'logger_param' => '/tmp/MadelineProto.log',
|
||||
'logger' => 3, // overwrite previous setting and echo logs
|
||||
],
|
||||
'max_tries' => [
|
||||
'query' => 5, // How many times should I try to call a method or send an object before throwing an exception
|
||||
'authorization' => 5, // How many times should I try to generate an authorization key before throwing an exception
|
||||
'response' => 5,// How many times should I try to get a response of a query before throwing an exception
|
||||
],
|
||||
'msg_array_limit' => [ // How big should be the arrays containing the incoming and outgoing messages?
|
||||
'incoming' => 30,
|
||||
'outgoing' => 30,
|
||||
],
|
||||
'updates' => [
|
||||
'updates_array_limit' => 1000, // How big should be the array containing the updates processed with the default example_update_handler callback
|
||||
'callback' => [$this, 'get_updates_update_handler'], // A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter
|
||||
],
|
||||
];
|
||||
```
|
||||
See https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L99 for the default values for the settings\ arrays and explanations for every setting.
|
||||
|
||||
You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values.
|
||||
Example:
|
||||
@ -334,12 +232,12 @@ The upload method returns an [InputFile](https://daniil.it/MadelineProto/API_doc
|
||||
|
||||
```
|
||||
$inputFile = $MadelineProto->upload('file', 'optional new file name.ext');
|
||||
// Generate an inputMedia object and store it in $inputMedia, see testing.php
|
||||
// Generate an inputMedia object and store it in $inputMedia, see tests/testing.php
|
||||
$MadelineProto->messages->sendMedia(['peer' => '@pwrtelegramgroup', 'media' => $inputMedia]);
|
||||
```
|
||||
|
||||
|
||||
See testing.php for more examples.
|
||||
See tests/testing.php for more examples.
|
||||
|
||||
|
||||
There are multiple download methods that allow you to download a file to a directory, to a file or to a stream.
|
||||
@ -390,7 +288,7 @@ $authorization = $MadelineProto->bot_login($token); // Note that every time you
|
||||
var_dump($authorization);
|
||||
```
|
||||
|
||||
See testing.php for more examples.
|
||||
See tests/testing.php for more examples.
|
||||
|
||||
### Storing sessions
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
/*
|
||||
Copyright 2016 Daniil Gentili
|
||||
Copyright 2016-2017 Daniil Gentili
|
||||
(https://daniil.it)
|
||||
This file is part of MadelineProto.
|
||||
MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
@ -31,9 +31,9 @@ $docs = [
|
||||
'readme' => false,
|
||||
],
|
||||
[
|
||||
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v57.json'],
|
||||
'title' => 'MadelineProto API documentation (layer 57)',
|
||||
'description' => 'MadelineProto API documentation (layer 57)',
|
||||
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v62.tl'],
|
||||
'title' => 'MadelineProto API documentation (layer 62)',
|
||||
'description' => 'MadelineProto API documentation (layer 62)',
|
||||
'output_dir' => __DIR__.'/docs/API_docs',
|
||||
'readme' => false,
|
||||
],
|
||||
|
17
composer.lock
generated
17
composer.lock
generated
@ -4,7 +4,6 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "e8bbb62792931576147b60ac9015be7a",
|
||||
"content-hash": "88f022c06bcba63b61978fccad258d1a",
|
||||
"packages": [
|
||||
{
|
||||
@ -58,7 +57,7 @@
|
||||
"struct",
|
||||
"unpack"
|
||||
],
|
||||
"time": "2016-11-14 15:09:50"
|
||||
"time": "2016-11-14T15:09:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "paragonie/constant_time_encoding",
|
||||
@ -119,7 +118,7 @@
|
||||
"hex2bin",
|
||||
"rfc4648"
|
||||
],
|
||||
"time": "2016-07-11 20:32:06"
|
||||
"time": "2016-07-11T20:32:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "paragonie/random_compat",
|
||||
@ -167,7 +166,7 @@
|
||||
"pseudorandom",
|
||||
"random"
|
||||
],
|
||||
"time": "2016-11-07 23:38:38"
|
||||
"time": "2016-11-07T23:38:38+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpseclib/phpseclib",
|
||||
@ -311,7 +310,7 @@
|
||||
"env",
|
||||
"environment"
|
||||
],
|
||||
"time": "2016-09-01 10:05:43"
|
||||
"time": "2016-09-01T10:05:43+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
@ -367,7 +366,7 @@
|
||||
"reflection",
|
||||
"static analysis"
|
||||
],
|
||||
"time": "2015-12-27 11:43:31"
|
||||
"time": "2015-12-27T11:43:31+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-docblock",
|
||||
@ -412,7 +411,7 @@
|
||||
}
|
||||
],
|
||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||
"time": "2016-09-30 07:12:33"
|
||||
"time": "2016-09-30T07:12:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/type-resolver",
|
||||
@ -459,7 +458,7 @@
|
||||
"email": "me@mikevanriel.com"
|
||||
}
|
||||
],
|
||||
"time": "2016-11-25 06:54:22"
|
||||
"time": "2016-11-25T06:54:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "webmozart/assert",
|
||||
@ -509,7 +508,7 @@
|
||||
"check",
|
||||
"validate"
|
||||
],
|
||||
"time": "2016-11-23 20:04:58"
|
||||
"time": "2016-11-23T20:04:58+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
|
@ -11,6 +11,7 @@ description: config attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|phonecalls\_enabled|[Bool](../types/Bool.md) | Optional|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|expires|[int](../types/int.md) | Required|
|
||||
|test\_mode|[Bool](../types/Bool.md) | Required|
|
||||
@ -33,6 +34,11 @@ description: config attributes, type and example
|
||||
|rating\_e\_decay|[int](../types/int.md) | Required|
|
||||
|stickers\_recent\_limit|[int](../types/int.md) | Required|
|
||||
|tmp\_sessions|[int](../types/int.md) | Optional|
|
||||
|pinned\_dialogs\_count\_max|[int](../types/int.md) | Required|
|
||||
|call\_receive\_timeout\_ms|[int](../types/int.md) | Required|
|
||||
|call\_ring\_timeout\_ms|[int](../types/int.md) | Required|
|
||||
|call\_connect\_timeout\_ms|[int](../types/int.md) | Required|
|
||||
|call\_packet\_timeout\_ms|[int](../types/int.md) | Required|
|
||||
|disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Required|
|
||||
|
||||
|
||||
@ -43,6 +49,6 @@ description: config attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [Vector t], ];
|
||||
$config = ['_' => 'config', 'phonecalls_enabled' => true, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'disabled_features' => [Vector t], ];
|
||||
```
|
||||
|
||||
|
@ -11,6 +11,7 @@ description: dialog attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pinned|[Bool](../types/Bool.md) | Optional|
|
||||
|peer|[Peer](../types/Peer.md) | Required|
|
||||
|top\_message|[int](../types/int.md) | Required|
|
||||
|read\_inbox\_max\_id|[int](../types/int.md) | Required|
|
||||
@ -28,6 +29,6 @@ description: dialog attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$dialog = ['_' => 'dialog', 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ];
|
||||
$dialog = ['_' => 'dialog', 'pinned' => true, 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ];
|
||||
```
|
||||
|
||||
|
@ -11,7 +11,9 @@ description: help_appChangelog attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[string](../types/string.md) | Required|
|
||||
|message|[string](../types/string.md) | Required|
|
||||
|media|[MessageMedia](../types/MessageMedia.md) | Required|
|
||||
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Required|
|
||||
|
||||
|
||||
|
||||
@ -21,6 +23,6 @@ description: help_appChangelog attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$help_appChangelog = ['_' => 'help.appChangelog', 'text' => string, ];
|
||||
$help_appChangelog = ['_' => 'help.appChangelog', 'message' => string, 'media' => MessageMedia, 'entities' => [Vector t], ];
|
||||
```
|
||||
|
||||
|
@ -189,7 +189,7 @@ description: List of constructors
|
||||
<br><br>[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\];<a name="chatPhotoEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$config](../constructors/config.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'test_mode' => [Bool](../types/Bool.md), 'this_dc' => [int](../types/int.md), 'dc_options' => \[[DcOption](../types/DcOption.md)\], 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'chat_big_size' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'disabled_features' => \[[DisabledFeature](../types/DisabledFeature.md)\], \];<a name="config"></a>
|
||||
<br><br>[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'test_mode' => [Bool](../types/Bool.md), 'this_dc' => [int](../types/int.md), 'dc_options' => \[[DcOption](../types/DcOption.md)\], 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'chat_big_size' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'call_receive_timeout_ms' => [int](../types/int.md), 'call_ring_timeout_ms' => [int](../types/int.md), 'call_connect_timeout_ms' => [int](../types/int.md), 'call_packet_timeout_ms' => [int](../types/int.md), 'disabled_features' => \[[DisabledFeature](../types/DisabledFeature.md)\], \];<a name="config"></a>
|
||||
|
||||
***
|
||||
<br><br>[$contact](../constructors/contact.md) = \['user_id' => [int](../types/int.md), 'mutual' => [Bool](../types/Bool.md), \];<a name="contact"></a>
|
||||
@ -237,7 +237,7 @@ description: List of constructors
|
||||
<br><br>[$dcOption](../constructors/dcOption.md) = \['ipv6' => [Bool](../types/Bool.md), 'media_only' => [Bool](../types/Bool.md), 'tcpo_only' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'ip_address' => [string](../types/string.md), 'port' => [int](../types/int.md), \];<a name="dcOption"></a>
|
||||
|
||||
***
|
||||
<br><br>[$dialog](../constructors/dialog.md) = \['peer' => [Peer](../types/Peer.md), 'top_message' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'pts' => [int](../types/int.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \];<a name="dialog"></a>
|
||||
<br><br>[$dialog](../constructors/dialog.md) = \['pinned' => [Bool](../types/Bool.md), 'peer' => [Peer](../types/Peer.md), 'top_message' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'pts' => [int](../types/int.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \];<a name="dialog"></a>
|
||||
|
||||
***
|
||||
<br><br>[$disabledFeature](../constructors/disabledFeature.md) = \['feature' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="disabledFeature"></a>
|
||||
@ -330,7 +330,7 @@ description: List of constructors
|
||||
<br><br>[$geoPointEmpty](../constructors/geoPointEmpty.md) = \[\];<a name="geoPointEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$help\_appChangelog](../constructors/help_appChangelog.md) = \['text' => [string](../types/string.md), \];<a name="help_appChangelog"></a>
|
||||
<br><br>[$help\_appChangelog](../constructors/help_appChangelog.md) = \['message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \];<a name="help_appChangelog"></a>
|
||||
|
||||
[$help\_appChangelogEmpty](../constructors/help_appChangelogEmpty.md) = \[\];<a name="help_appChangelogEmpty"></a>
|
||||
|
||||
@ -509,6 +509,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$inputMessagesFilterMusic](../constructors/inputMessagesFilterMusic.md) = \[\];<a name="inputMessagesFilterMusic"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md) = \['missed' => [Bool](../types/Bool.md), \];<a name="inputMessagesFilterPhoneCalls"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMessagesFilterPhotoVideo](../constructors/inputMessagesFilterPhotoVideo.md) = \[\];<a name="inputMessagesFilterPhotoVideo"></a>
|
||||
|
||||
@ -563,6 +566,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$inputPeerUser](../constructors/inputPeerUser.md) = \['user_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \];<a name="inputPeerUser"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputPhoneCall](../constructors/inputPhoneCall.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \];<a name="inputPhoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputPhoneContact](../constructors/inputPhoneContact.md) = \['client_id' => [long](../types/long.md), 'phone' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \];<a name="inputPhoneContact"></a>
|
||||
|
||||
@ -575,6 +581,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) = \[\];<a name="inputPrivacyKeyChatInvite"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputPrivacyKeyPhoneCall](../constructors/inputPrivacyKeyPhoneCall.md) = \[\];<a name="inputPrivacyKeyPhoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputPrivacyKeyStatusTimestamp](../constructors/inputPrivacyKeyStatusTimestamp.md) = \[\];<a name="inputPrivacyKeyStatusTimestamp"></a>
|
||||
|
||||
@ -701,6 +710,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$messageActionHistoryClear](../constructors/messageActionHistoryClear.md) = \[\];<a name="messageActionHistoryClear"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageActionPhoneCall](../constructors/messageActionPhoneCall.md) = \['call_id' => [long](../types/long.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'duration' => [int](../types/int.md), \];<a name="messageActionPhoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageActionPinMessage](../constructors/messageActionPinMessage.md) = \[\];<a name="messageActionPinMessage"></a>
|
||||
|
||||
@ -790,9 +802,9 @@ description: List of constructors
|
||||
|
||||
[$messages\_archivedStickers](../constructors/messages_archivedStickers.md) = \['count' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], \];<a name="messages_archivedStickers"></a>
|
||||
|
||||
[$messages\_botCallbackAnswer](../constructors/messages_botCallbackAnswer.md) = \['alert' => [Bool](../types/Bool.md), 'has_url' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \];<a name="messages_botCallbackAnswer"></a>
|
||||
[$messages\_botCallbackAnswer](../constructors/messages_botCallbackAnswer.md) = \['alert' => [Bool](../types/Bool.md), 'has_url' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \];<a name="messages_botCallbackAnswer"></a>
|
||||
|
||||
[$messages\_botResults](../constructors/messages_botResults.md) = \['gallery' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), 'results' => \[[BotInlineResult](../types/BotInlineResult.md)\], \];<a name="messages_botResults"></a>
|
||||
[$messages\_botResults](../constructors/messages_botResults.md) = \['gallery' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), 'results' => \[[BotInlineResult](../types/BotInlineResult.md)\], 'cache_time' => [int](../types/int.md), \];<a name="messages_botResults"></a>
|
||||
|
||||
[$messages\_channelMessages](../constructors/messages_channelMessages.md) = \['pts' => [int](../types/int.md), 'count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="messages_channelMessages"></a>
|
||||
|
||||
@ -800,6 +812,8 @@ description: List of constructors
|
||||
|
||||
[$messages\_chats](../constructors/messages_chats.md) = \['chats' => \[[Chat](../types/Chat.md)\], \];<a name="messages_chats"></a>
|
||||
|
||||
[$messages\_chatsSlice](../constructors/messages_chatsSlice.md) = \['count' => [int](../types/int.md), 'chats' => \[[Chat](../types/Chat.md)\], \];<a name="messages_chatsSlice"></a>
|
||||
|
||||
[$messages\_dhConfig](../constructors/messages_dhConfig.md) = \['g' => [int](../types/int.md), 'p' => [bytes](../types/bytes.md), 'version' => [int](../types/int.md), 'random' => [bytes](../types/bytes.md), \];<a name="messages_dhConfig"></a>
|
||||
|
||||
[$messages\_dhConfigNotModified](../constructors/messages_dhConfigNotModified.md) = \['random' => [bytes](../types/bytes.md), \];<a name="messages_dhConfigNotModified"></a>
|
||||
@ -864,6 +878,75 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$null](../constructors/null.md) = \[\];<a name="null"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockAnchor](../constructors/pageBlockAnchor.md) = \['name' => [string](../types/string.md), \];<a name="pageBlockAnchor"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockAuthorDate](../constructors/pageBlockAuthorDate.md) = \['author' => [RichText](../types/RichText.md), 'published_date' => [int](../types/int.md), \];<a name="pageBlockAuthorDate"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockBlockquote](../constructors/pageBlockBlockquote.md) = \['text' => [RichText](../types/RichText.md), 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockBlockquote"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockCollage](../constructors/pageBlockCollage.md) = \['items' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockCollage"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockCover](../constructors/pageBlockCover.md) = \['cover' => [PageBlock](../types/PageBlock.md), \];<a name="pageBlockCover"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockDivider](../constructors/pageBlockDivider.md) = \[\];<a name="pageBlockDivider"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockEmbed](../constructors/pageBlockEmbed.md) = \['full_width' => [Bool](../types/Bool.md), 'allow_scrolling' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'html' => [string](../types/string.md), 'poster_photo_id' => [long](../types/long.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockEmbed"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockEmbedPost](../constructors/pageBlockEmbedPost.md) = \['url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), 'author_photo_id' => [long](../types/long.md), 'author' => [string](../types/string.md), 'date' => [int](../types/int.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockEmbedPost"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockFooter](../constructors/pageBlockFooter.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockFooter"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockHeader](../constructors/pageBlockHeader.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockHeader"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockList](../constructors/pageBlockList.md) = \['ordered' => [Bool](../types/Bool.md), 'items' => \[[RichText](../types/RichText.md)\], \];<a name="pageBlockList"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockParagraph](../constructors/pageBlockParagraph.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockParagraph"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockPhoto](../constructors/pageBlockPhoto.md) = \['photo_id' => [long](../types/long.md), 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockPhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockPreformatted](../constructors/pageBlockPreformatted.md) = \['text' => [RichText](../types/RichText.md), 'language' => [string](../types/string.md), \];<a name="pageBlockPreformatted"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockPullquote](../constructors/pageBlockPullquote.md) = \['text' => [RichText](../types/RichText.md), 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockPullquote"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockSlideshow](../constructors/pageBlockSlideshow.md) = \['items' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockSlideshow"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockSubheader](../constructors/pageBlockSubheader.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockSubheader"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockSubtitle](../constructors/pageBlockSubtitle.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockSubtitle"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockTitle](../constructors/pageBlockTitle.md) = \['text' => [RichText](../types/RichText.md), \];<a name="pageBlockTitle"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockUnsupported](../constructors/pageBlockUnsupported.md) = \[\];<a name="pageBlockUnsupported"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockVideo](../constructors/pageBlockVideo.md) = \['autoplay' => [Bool](../types/Bool.md), 'loop' => [Bool](../types/Bool.md), 'video_id' => [long](../types/long.md), 'caption' => [RichText](../types/RichText.md), \];<a name="pageBlockVideo"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageFull](../constructors/pageFull.md) = \['blocks' => \[[PageBlock](../types/PageBlock.md)\], 'photos' => \[[Photo](../types/Photo.md)\], 'videos' => \[[Document](../types/Document.md)\], \];<a name="pageFull"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pagePart](../constructors/pagePart.md) = \['blocks' => \[[PageBlock](../types/PageBlock.md)\], 'photos' => \[[Photo](../types/Photo.md)\], 'videos' => \[[Document](../types/Document.md)\], \];<a name="pagePart"></a>
|
||||
|
||||
***
|
||||
<br><br>[$peerChannel](../constructors/peerChannel.md) = \['channel_id' => [int](../types/int.md), \];<a name="peerChannel"></a>
|
||||
|
||||
@ -888,6 +971,42 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$peerUser](../constructors/peerUser.md) = \['user_id' => [int](../types/int.md), \];<a name="peerUser"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCall](../constructors/phoneCall.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_or_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), 'connection' => [PhoneConnection](../types/PhoneConnection.md), 'alternative_connections' => \[[PhoneConnection](../types/PhoneConnection.md)\], 'start_date' => [int](../types/int.md), \];<a name="phoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallDiscardReasonBusy](../constructors/phoneCallDiscardReasonBusy.md) = \[\];<a name="phoneCallDiscardReasonBusy"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallDiscardReasonDisconnect](../constructors/phoneCallDiscardReasonDisconnect.md) = \[\];<a name="phoneCallDiscardReasonDisconnect"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallDiscardReasonHangup](../constructors/phoneCallDiscardReasonHangup.md) = \[\];<a name="phoneCallDiscardReasonHangup"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallDiscardReasonMissed](../constructors/phoneCallDiscardReasonMissed.md) = \[\];<a name="phoneCallDiscardReasonMissed"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallDiscarded](../constructors/phoneCallDiscarded.md) = \['id' => [long](../types/long.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'duration' => [int](../types/int.md), \];<a name="phoneCallDiscarded"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallEmpty](../constructors/phoneCallEmpty.md) = \['id' => [long](../types/long.md), \];<a name="phoneCallEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallProtocol](../constructors/phoneCallProtocol.md) = \['udp_p2p' => [Bool](../types/Bool.md), 'udp_reflector' => [Bool](../types/Bool.md), 'min_layer' => [int](../types/int.md), 'max_layer' => [int](../types/int.md), \];<a name="phoneCallProtocol"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallRequested](../constructors/phoneCallRequested.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \];<a name="phoneCallRequested"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneCallWaiting](../constructors/phoneCallWaiting.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), 'receive_date' => [int](../types/int.md), \];<a name="phoneCallWaiting"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phoneConnection](../constructors/phoneConnection.md) = \['id' => [long](../types/long.md), 'ip' => [string](../types/string.md), 'ipv6' => [string](../types/string.md), 'port' => [int](../types/int.md), 'peer_tag' => [bytes](../types/bytes.md), \];<a name="phoneConnection"></a>
|
||||
|
||||
***
|
||||
<br><br>[$phone\_phoneCall](../constructors/phone_phoneCall.md) = \['phone_call' => [PhoneCall](../types/PhoneCall.md), 'users' => \[[User](../types/User.md)\], \];<a name="phone_phoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$photo](../constructors/photo.md) = \['has_stickers' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], \];<a name="photo"></a>
|
||||
|
||||
@ -913,6 +1032,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) = \[\];<a name="privacyKeyChatInvite"></a>
|
||||
|
||||
***
|
||||
<br><br>[$privacyKeyPhoneCall](../constructors/privacyKeyPhoneCall.md) = \[\];<a name="privacyKeyPhoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$privacyKeyStatusTimestamp](../constructors/privacyKeyStatusTimestamp.md) = \[\];<a name="privacyKeyStatusTimestamp"></a>
|
||||
|
||||
@ -1015,6 +1137,36 @@ description: List of constructors
|
||||
|
||||
[$storage\_fileWebp](../constructors/storage_fileWebp.md) = \[\];<a name="storage_fileWebp"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textBold](../constructors/textBold.md) = \['text' => [RichText](../types/RichText.md), \];<a name="textBold"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textConcat](../constructors/textConcat.md) = \['texts' => \[[RichText](../types/RichText.md)\], \];<a name="textConcat"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textEmail](../constructors/textEmail.md) = \['text' => [RichText](../types/RichText.md), 'email' => [string](../types/string.md), \];<a name="textEmail"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textEmpty](../constructors/textEmpty.md) = \[\];<a name="textEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textFixed](../constructors/textFixed.md) = \['text' => [RichText](../types/RichText.md), \];<a name="textFixed"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textItalic](../constructors/textItalic.md) = \['text' => [RichText](../types/RichText.md), \];<a name="textItalic"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textPlain](../constructors/textPlain.md) = \['text' => [string](../types/string.md), \];<a name="textPlain"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textStrike](../constructors/textStrike.md) = \['text' => [RichText](../types/RichText.md), \];<a name="textStrike"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textUnderline](../constructors/textUnderline.md) = \['text' => [RichText](../types/RichText.md), \];<a name="textUnderline"></a>
|
||||
|
||||
***
|
||||
<br><br>[$textUrl](../constructors/textUrl.md) = \['text' => [RichText](../types/RichText.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \];<a name="textUrl"></a>
|
||||
|
||||
***
|
||||
<br><br>[$topPeer](../constructors/topPeer.md) = \['peer' => [Peer](../types/Peer.md), 'rating' => [double](../types/double.md), \];<a name="topPeer"></a>
|
||||
|
||||
@ -1060,6 +1212,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$updateChannelTooLong](../constructors/updateChannelTooLong.md) = \['channel_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), \];<a name="updateChannelTooLong"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateChannelWebPage](../constructors/updateChannelWebPage.md) = \['channel_id' => [int](../types/int.md), 'webpage' => [WebPage](../types/WebPage.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateChannelWebPage"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateChatAdmins](../constructors/updateChatAdmins.md) = \['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), 'version' => [int](../types/int.md), \];<a name="updateChatAdmins"></a>
|
||||
|
||||
@ -1096,6 +1251,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateDeleteMessages"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateDialogPinned](../constructors/updateDialogPinned.md) = \['pinned' => [Bool](../types/Bool.md), 'peer' => [Peer](../types/Peer.md), \];<a name="updateDialogPinned"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateDraftMessage](../constructors/updateDraftMessage.md) = \['peer' => [Peer](../types/Peer.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \];<a name="updateDraftMessage"></a>
|
||||
|
||||
@ -1120,9 +1278,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$updateMessageID](../constructors/updateMessageID.md) = \['id' => [int](../types/int.md), \];<a name="updateMessageID"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateNewAuthorization](../constructors/updateNewAuthorization.md) = \['auth_key_id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'device' => [string](../types/string.md), 'location' => [string](../types/string.md), \];<a name="updateNewAuthorization"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateNewChannelMessage](../constructors/updateNewChannelMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateNewChannelMessage"></a>
|
||||
|
||||
@ -1138,6 +1293,12 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$updateNotifySettings](../constructors/updateNotifySettings.md) = \['peer' => [NotifyPeer](../types/NotifyPeer.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), \];<a name="updateNotifySettings"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updatePhoneCall](../constructors/updatePhoneCall.md) = \['phone_call' => [PhoneCall](../types/PhoneCall.md), \];<a name="updatePhoneCall"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updatePinnedDialogs](../constructors/updatePinnedDialogs.md) = \['order' => \[[Peer](../types/Peer.md)\], \];<a name="updatePinnedDialogs"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updatePrivacy](../constructors/updatePrivacy.md) = \['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => \[[PrivacyRule](../types/PrivacyRule.md)\], \];<a name="updatePrivacy"></a>
|
||||
|
||||
@ -1169,7 +1330,7 @@ description: List of constructors
|
||||
<br><br>[$updateSavedGifs](../constructors/updateSavedGifs.md) = \[\];<a name="updateSavedGifs"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateServiceNotification](../constructors/updateServiceNotification.md) = \['type' => [string](../types/string.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'popup' => [Bool](../types/Bool.md), \];<a name="updateServiceNotification"></a>
|
||||
<br><br>[$updateServiceNotification](../constructors/updateServiceNotification.md) = \['popup' => [Bool](../types/Bool.md), 'inbox_date' => [int](../types/int.md), 'type' => [string](../types/string.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \];<a name="updateServiceNotification"></a>
|
||||
|
||||
***
|
||||
<br><br>[$updateShort](../constructors/updateShort.md) = \['update' => [Update](../types/Update.md), 'date' => [int](../types/int.md), \];<a name="updateShort"></a>
|
||||
@ -1232,6 +1393,8 @@ description: List of constructors
|
||||
|
||||
[$updates\_differenceSlice](../constructors/updates_differenceSlice.md) = \['new_messages' => \[[Message](../types/Message.md)\], 'new_encrypted_messages' => \[[EncryptedMessage](../types/EncryptedMessage.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'intermediate_state' => [updates\_State](../types/updates_State.md), \];<a name="updates_differenceSlice"></a>
|
||||
|
||||
[$updates\_differenceTooLong](../constructors/updates_differenceTooLong.md) = \['pts' => [int](../types/int.md), \];<a name="updates_differenceTooLong"></a>
|
||||
|
||||
[$updates\_state](../constructors/updates_state.md) = \['pts' => [int](../types/int.md), 'qts' => [int](../types/int.md), 'date' => [int](../types/int.md), 'seq' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), \];<a name="updates_state"></a>
|
||||
|
||||
***
|
||||
@ -1244,7 +1407,7 @@ description: List of constructors
|
||||
<br><br>[$userEmpty](../constructors/userEmpty.md) = \['id' => [int](../types/int.md), \];<a name="userEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$userFull](../constructors/userFull.md) = \['blocked' => [Bool](../types/Bool.md), 'user' => [User](../types/User.md), 'about' => [string](../types/string.md), 'link' => [contacts\_Link](../types/contacts_Link.md), 'profile_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'bot_info' => [BotInfo](../types/BotInfo.md), \];<a name="userFull"></a>
|
||||
<br><br>[$userFull](../constructors/userFull.md) = \['blocked' => [Bool](../types/Bool.md), 'phone_calls_available' => [Bool](../types/Bool.md), 'user' => [User](../types/User.md), 'about' => [string](../types/string.md), 'link' => [contacts\_Link](../types/contacts_Link.md), 'profile_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'bot_info' => [BotInfo](../types/BotInfo.md), 'common_chats_count' => [int](../types/int.md), \];<a name="userFull"></a>
|
||||
|
||||
***
|
||||
<br><br>[$userProfilePhoto](../constructors/userProfilePhoto.md) = \['photo_id' => [long](../types/long.md), 'photo_small' => [FileLocation](../types/FileLocation.md), 'photo_big' => [FileLocation](../types/FileLocation.md), \];<a name="userProfilePhoto"></a>
|
||||
@ -1270,9 +1433,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$userStatusRecently](../constructors/userStatusRecently.md) = \[\];<a name="userStatusRecently"></a>
|
||||
|
||||
***
|
||||
<br><br>[$vector](../constructors/vector.md) = \[\];<a name="vector"></a>
|
||||
|
||||
***
|
||||
<br><br>[$wallPaper](../constructors/wallPaper.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], 'color' => [int](../types/int.md), \];<a name="wallPaper"></a>
|
||||
|
||||
@ -1280,11 +1440,14 @@ description: List of constructors
|
||||
<br><br>[$wallPaperSolid](../constructors/wallPaperSolid.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'bg_color' => [int](../types/int.md), 'color' => [int](../types/int.md), \];<a name="wallPaperSolid"></a>
|
||||
|
||||
***
|
||||
<br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), \];<a name="webPage"></a>
|
||||
<br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'cached_page' => [Page](../types/Page.md), \];<a name="webPage"></a>
|
||||
|
||||
***
|
||||
<br><br>[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \];<a name="webPageEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$webPageNotModified](../constructors/webPageNotModified.md) = \[\];<a name="webPageNotModified"></a>
|
||||
|
||||
***
|
||||
<br><br>[$webPagePending](../constructors/webPagePending.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), \];<a name="webPagePending"></a>
|
||||
|
||||
|
26
docs/API_docs/constructors/inputMessagesFilterPhoneCalls.md
Normal file
26
docs/API_docs/constructors/inputMessagesFilterPhoneCalls.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: inputMessagesFilterPhoneCalls
|
||||
description: inputMessagesFilterPhoneCalls attributes, type and example
|
||||
---
|
||||
## Constructor: inputMessagesFilterPhoneCalls
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|missed|[Bool](../types/Bool.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [MessagesFilter](../types/MessagesFilter.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMessagesFilterPhoneCalls = ['_' => 'inputMessagesFilterPhoneCalls', 'missed' => true, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/inputPhoneCall.md
Normal file
27
docs/API_docs/constructors/inputPhoneCall.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: inputPhoneCall
|
||||
description: inputPhoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: inputPhoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|access\_hash|[long](../types/long.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [InputPhoneCall](../types/InputPhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputPhoneCall = ['_' => 'inputPhoneCall', 'id' => long, 'access_hash' => long, ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/inputPrivacyKeyPhoneCall.md
Normal file
21
docs/API_docs/constructors/inputPrivacyKeyPhoneCall.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: inputPrivacyKeyPhoneCall
|
||||
description: inputPrivacyKeyPhoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: inputPrivacyKeyPhoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [InputPrivacyKey](../types/InputPrivacyKey.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputPrivacyKeyPhoneCall = ['_' => 'inputPrivacyKeyPhoneCall', ];
|
||||
```
|
||||
|
28
docs/API_docs/constructors/messageActionPhoneCall.md
Normal file
28
docs/API_docs/constructors/messageActionPhoneCall.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: messageActionPhoneCall
|
||||
description: messageActionPhoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: messageActionPhoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|call\_id|[long](../types/long.md) | Required|
|
||||
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|
|
||||
|duration|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [MessageAction](../types/MessageAction.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messageActionPhoneCall = ['_' => 'messageActionPhoneCall', 'call_id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int, ];
|
||||
```
|
||||
|
@ -15,6 +15,7 @@ description: messages_botCallbackAnswer attributes, type and example
|
||||
|has\_url|[Bool](../types/Bool.md) | Optional|
|
||||
|message|[string](../types/string.md) | Optional|
|
||||
|url|[string](../types/string.md) | Optional|
|
||||
|cache\_time|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
@ -24,6 +25,6 @@ description: messages_botCallbackAnswer attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messages_botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => true, 'has_url' => true, 'message' => string, 'url' => string, ];
|
||||
$messages_botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => true, 'has_url' => true, 'message' => string, 'url' => string, 'cache_time' => int, ];
|
||||
```
|
||||
|
||||
|
@ -16,6 +16,7 @@ description: messages_botResults attributes, type and example
|
||||
|next\_offset|[string](../types/string.md) | Optional|
|
||||
|switch\_pm|[InlineBotSwitchPM](../types/InlineBotSwitchPM.md) | Optional|
|
||||
|results|Array of [BotInlineResult](../types/BotInlineResult.md) | Required|
|
||||
|cache\_time|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
@ -25,6 +26,6 @@ description: messages_botResults attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messages_botResults = ['_' => 'messages.botResults', 'gallery' => true, 'query_id' => long, 'next_offset' => string, 'switch_pm' => InlineBotSwitchPM, 'results' => [Vector t], ];
|
||||
$messages_botResults = ['_' => 'messages.botResults', 'gallery' => true, 'query_id' => long, 'next_offset' => string, 'switch_pm' => InlineBotSwitchPM, 'results' => [Vector t], 'cache_time' => int, ];
|
||||
```
|
||||
|
||||
|
27
docs/API_docs/constructors/messages_chatsSlice.md
Normal file
27
docs/API_docs/constructors/messages_chatsSlice.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: messages.chatsSlice
|
||||
description: messages_chatsSlice attributes, type and example
|
||||
---
|
||||
## Constructor: messages.chatsSlice
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|count|[int](../types/int.md) | Required|
|
||||
|chats|Array of [Chat](../types/Chat.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [messages\_Chats](../types/messages_Chats.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Vector t], ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockAnchor.md
Normal file
26
docs/API_docs/constructors/pageBlockAnchor.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockAnchor
|
||||
description: pageBlockAnchor attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockAnchor
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|name|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockAnchor = ['_' => 'pageBlockAnchor', 'name' => string, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockAuthorDate.md
Normal file
27
docs/API_docs/constructors/pageBlockAuthorDate.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockAuthorDate
|
||||
description: pageBlockAuthorDate attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockAuthorDate
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|author|[RichText](../types/RichText.md) | Required|
|
||||
|published\_date|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockAuthorDate = ['_' => 'pageBlockAuthorDate', 'author' => RichText, 'published_date' => int, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockBlockquote.md
Normal file
27
docs/API_docs/constructors/pageBlockBlockquote.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockBlockquote
|
||||
description: pageBlockBlockquote attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockBlockquote
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockBlockquote = ['_' => 'pageBlockBlockquote', 'text' => RichText, 'caption' => RichText, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockCollage.md
Normal file
27
docs/API_docs/constructors/pageBlockCollage.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockCollage
|
||||
description: pageBlockCollage attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockCollage
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|items|Array of [PageBlock](../types/PageBlock.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [Vector t], 'caption' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockCover.md
Normal file
26
docs/API_docs/constructors/pageBlockCover.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockCover
|
||||
description: pageBlockCover attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockCover
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|cover|[PageBlock](../types/PageBlock.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockCover = ['_' => 'pageBlockCover', 'cover' => PageBlock, ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/pageBlockDivider.md
Normal file
21
docs/API_docs/constructors/pageBlockDivider.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: pageBlockDivider
|
||||
description: pageBlockDivider attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockDivider
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockDivider = ['_' => 'pageBlockDivider', ];
|
||||
```
|
||||
|
33
docs/API_docs/constructors/pageBlockEmbed.md
Normal file
33
docs/API_docs/constructors/pageBlockEmbed.md
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
title: pageBlockEmbed
|
||||
description: pageBlockEmbed attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockEmbed
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|full\_width|[Bool](../types/Bool.md) | Optional|
|
||||
|allow\_scrolling|[Bool](../types/Bool.md) | Optional|
|
||||
|url|[string](../types/string.md) | Optional|
|
||||
|html|[string](../types/string.md) | Optional|
|
||||
|poster\_photo\_id|[long](../types/long.md) | Optional|
|
||||
|w|[int](../types/int.md) | Required|
|
||||
|h|[int](../types/int.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockEmbed = ['_' => 'pageBlockEmbed', 'full_width' => true, 'allow_scrolling' => true, 'url' => string, 'html' => string, 'poster_photo_id' => long, 'w' => int, 'h' => int, 'caption' => RichText, ];
|
||||
```
|
||||
|
32
docs/API_docs/constructors/pageBlockEmbedPost.md
Normal file
32
docs/API_docs/constructors/pageBlockEmbedPost.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
title: pageBlockEmbedPost
|
||||
description: pageBlockEmbedPost attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockEmbedPost
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|url|[string](../types/string.md) | Required|
|
||||
|webpage\_id|[long](../types/long.md) | Required|
|
||||
|author\_photo\_id|[long](../types/long.md) | Required|
|
||||
|author|[string](../types/string.md) | Required|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|blocks|Array of [PageBlock](../types/PageBlock.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => string, 'webpage_id' => long, 'author_photo_id' => long, 'author' => string, 'date' => int, 'blocks' => [Vector t], 'caption' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockFooter.md
Normal file
26
docs/API_docs/constructors/pageBlockFooter.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockFooter
|
||||
description: pageBlockFooter attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockFooter
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockFooter = ['_' => 'pageBlockFooter', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockHeader.md
Normal file
26
docs/API_docs/constructors/pageBlockHeader.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockHeader
|
||||
description: pageBlockHeader attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockHeader
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockHeader = ['_' => 'pageBlockHeader', 'text' => RichText, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockList.md
Normal file
27
docs/API_docs/constructors/pageBlockList.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockList
|
||||
description: pageBlockList attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockList
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|ordered|[Bool](../types/Bool.md) | Required|
|
||||
|items|Array of [RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockList = ['_' => 'pageBlockList', 'ordered' => Bool, 'items' => [Vector t], ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockParagraph.md
Normal file
26
docs/API_docs/constructors/pageBlockParagraph.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockParagraph
|
||||
description: pageBlockParagraph attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockParagraph
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockParagraph = ['_' => 'pageBlockParagraph', 'text' => RichText, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockPhoto.md
Normal file
27
docs/API_docs/constructors/pageBlockPhoto.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockPhoto
|
||||
description: pageBlockPhoto attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockPhoto
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|photo\_id|[long](../types/long.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockPhoto = ['_' => 'pageBlockPhoto', 'photo_id' => long, 'caption' => RichText, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockPreformatted.md
Normal file
27
docs/API_docs/constructors/pageBlockPreformatted.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockPreformatted
|
||||
description: pageBlockPreformatted attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockPreformatted
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|language|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => string, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockPullquote.md
Normal file
27
docs/API_docs/constructors/pageBlockPullquote.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockPullquote
|
||||
description: pageBlockPullquote attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockPullquote
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockPullquote = ['_' => 'pageBlockPullquote', 'text' => RichText, 'caption' => RichText, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/pageBlockSlideshow.md
Normal file
27
docs/API_docs/constructors/pageBlockSlideshow.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: pageBlockSlideshow
|
||||
description: pageBlockSlideshow attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockSlideshow
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|items|Array of [PageBlock](../types/PageBlock.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [Vector t], 'caption' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockSubheader.md
Normal file
26
docs/API_docs/constructors/pageBlockSubheader.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockSubheader
|
||||
description: pageBlockSubheader attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockSubheader
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockSubheader = ['_' => 'pageBlockSubheader', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockSubtitle.md
Normal file
26
docs/API_docs/constructors/pageBlockSubtitle.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockSubtitle
|
||||
description: pageBlockSubtitle attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockSubtitle
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockSubtitle = ['_' => 'pageBlockSubtitle', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/pageBlockTitle.md
Normal file
26
docs/API_docs/constructors/pageBlockTitle.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: pageBlockTitle
|
||||
description: pageBlockTitle attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockTitle
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockTitle = ['_' => 'pageBlockTitle', 'text' => RichText, ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/pageBlockUnsupported.md
Normal file
21
docs/API_docs/constructors/pageBlockUnsupported.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: pageBlockUnsupported
|
||||
description: pageBlockUnsupported attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockUnsupported
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockUnsupported = ['_' => 'pageBlockUnsupported', ];
|
||||
```
|
||||
|
29
docs/API_docs/constructors/pageBlockVideo.md
Normal file
29
docs/API_docs/constructors/pageBlockVideo.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: pageBlockVideo
|
||||
description: pageBlockVideo attributes, type and example
|
||||
---
|
||||
## Constructor: pageBlockVideo
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|autoplay|[Bool](../types/Bool.md) | Optional|
|
||||
|loop|[Bool](../types/Bool.md) | Optional|
|
||||
|video\_id|[long](../types/long.md) | Required|
|
||||
|caption|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PageBlock](../types/PageBlock.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageBlockVideo = ['_' => 'pageBlockVideo', 'autoplay' => true, 'loop' => true, 'video_id' => long, 'caption' => RichText, ];
|
||||
```
|
||||
|
28
docs/API_docs/constructors/pageFull.md
Normal file
28
docs/API_docs/constructors/pageFull.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: pageFull
|
||||
description: pageFull attributes, type and example
|
||||
---
|
||||
## Constructor: pageFull
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|blocks|Array of [PageBlock](../types/PageBlock.md) | Required|
|
||||
|photos|Array of [Photo](../types/Photo.md) | Required|
|
||||
|videos|Array of [Document](../types/Document.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [Page](../types/Page.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pageFull = ['_' => 'pageFull', 'blocks' => [Vector t], 'photos' => [Vector t], 'videos' => [Vector t], ];
|
||||
```
|
||||
|
28
docs/API_docs/constructors/pagePart.md
Normal file
28
docs/API_docs/constructors/pagePart.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: pagePart
|
||||
description: pagePart attributes, type and example
|
||||
---
|
||||
## Constructor: pagePart
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|blocks|Array of [PageBlock](../types/PageBlock.md) | Required|
|
||||
|photos|Array of [Photo](../types/Photo.md) | Required|
|
||||
|videos|Array of [Document](../types/Document.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [Page](../types/Page.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pagePart = ['_' => 'pagePart', 'blocks' => [Vector t], 'photos' => [Vector t], 'videos' => [Vector t], ];
|
||||
```
|
||||
|
36
docs/API_docs/constructors/phoneCall.md
Normal file
36
docs/API_docs/constructors/phoneCall.md
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
title: phoneCall
|
||||
description: phoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|access\_hash|[long](../types/long.md) | Required|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|admin\_id|[int](../types/int.md) | Required|
|
||||
|participant\_id|[int](../types/int.md) | Required|
|
||||
|g\_a\_or\_b|[bytes](../types/bytes.md) | Required|
|
||||
|key\_fingerprint|[long](../types/long.md) | Required|
|
||||
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Required|
|
||||
|connection|[PhoneConnection](../types/PhoneConnection.md) | Required|
|
||||
|alternative\_connections|Array of [PhoneConnection](../types/PhoneConnection.md) | Required|
|
||||
|start\_date|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCall](../types/PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCall = ['_' => 'phoneCall', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => bytes, 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connection' => PhoneConnection, 'alternative_connections' => [Vector t], 'start_date' => int, ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/phoneCallDiscardReasonBusy.md
Normal file
21
docs/API_docs/constructors/phoneCallDiscardReasonBusy.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: phoneCallDiscardReasonBusy
|
||||
description: phoneCallDiscardReasonBusy attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallDiscardReasonBusy
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallDiscardReasonBusy = ['_' => 'phoneCallDiscardReasonBusy', ];
|
||||
```
|
||||
|
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: phoneCallDiscardReasonDisconnect
|
||||
description: phoneCallDiscardReasonDisconnect attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallDiscardReasonDisconnect
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallDiscardReasonDisconnect = ['_' => 'phoneCallDiscardReasonDisconnect', ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/phoneCallDiscardReasonHangup.md
Normal file
21
docs/API_docs/constructors/phoneCallDiscardReasonHangup.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: phoneCallDiscardReasonHangup
|
||||
description: phoneCallDiscardReasonHangup attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallDiscardReasonHangup
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallDiscardReasonHangup = ['_' => 'phoneCallDiscardReasonHangup', ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/phoneCallDiscardReasonMissed.md
Normal file
21
docs/API_docs/constructors/phoneCallDiscardReasonMissed.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: phoneCallDiscardReasonMissed
|
||||
description: phoneCallDiscardReasonMissed attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallDiscardReasonMissed
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallDiscardReasonMissed = ['_' => 'phoneCallDiscardReasonMissed', ];
|
||||
```
|
||||
|
28
docs/API_docs/constructors/phoneCallDiscarded.md
Normal file
28
docs/API_docs/constructors/phoneCallDiscarded.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: phoneCallDiscarded
|
||||
description: phoneCallDiscarded attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallDiscarded
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|
|
||||
|duration|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCall](../types/PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallDiscarded = ['_' => 'phoneCallDiscarded', 'id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/phoneCallEmpty.md
Normal file
26
docs/API_docs/constructors/phoneCallEmpty.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: phoneCallEmpty
|
||||
description: phoneCallEmpty attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCall](../types/PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallEmpty = ['_' => 'phoneCallEmpty', 'id' => long, ];
|
||||
```
|
||||
|
29
docs/API_docs/constructors/phoneCallProtocol.md
Normal file
29
docs/API_docs/constructors/phoneCallProtocol.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: phoneCallProtocol
|
||||
description: phoneCallProtocol attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallProtocol
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|udp\_p2p|[Bool](../types/Bool.md) | Optional|
|
||||
|udp\_reflector|[Bool](../types/Bool.md) | Optional|
|
||||
|min\_layer|[int](../types/int.md) | Required|
|
||||
|max\_layer|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCallProtocol](../types/PhoneCallProtocol.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => true, 'udp_reflector' => true, 'min_layer' => int, 'max_layer' => int, ];
|
||||
```
|
||||
|
32
docs/API_docs/constructors/phoneCallRequested.md
Normal file
32
docs/API_docs/constructors/phoneCallRequested.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
title: phoneCallRequested
|
||||
description: phoneCallRequested attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallRequested
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|access\_hash|[long](../types/long.md) | Required|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|admin\_id|[int](../types/int.md) | Required|
|
||||
|participant\_id|[int](../types/int.md) | Required|
|
||||
|g\_a|[bytes](../types/bytes.md) | Required|
|
||||
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCall](../types/PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallRequested = ['_' => 'phoneCallRequested', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a' => bytes, 'protocol' => PhoneCallProtocol, ];
|
||||
```
|
||||
|
32
docs/API_docs/constructors/phoneCallWaiting.md
Normal file
32
docs/API_docs/constructors/phoneCallWaiting.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
title: phoneCallWaiting
|
||||
description: phoneCallWaiting attributes, type and example
|
||||
---
|
||||
## Constructor: phoneCallWaiting
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|access\_hash|[long](../types/long.md) | Required|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|admin\_id|[int](../types/int.md) | Required|
|
||||
|participant\_id|[int](../types/int.md) | Required|
|
||||
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Required|
|
||||
|receive\_date|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneCall](../types/PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneCallWaiting = ['_' => 'phoneCallWaiting', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'protocol' => PhoneCallProtocol, 'receive_date' => int, ];
|
||||
```
|
||||
|
30
docs/API_docs/constructors/phoneConnection.md
Normal file
30
docs/API_docs/constructors/phoneConnection.md
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
title: phoneConnection
|
||||
description: phoneConnection attributes, type and example
|
||||
---
|
||||
## Constructor: phoneConnection
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|ip|[string](../types/string.md) | Required|
|
||||
|ipv6|[string](../types/string.md) | Required|
|
||||
|port|[int](../types/int.md) | Required|
|
||||
|peer\_tag|[bytes](../types/bytes.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [PhoneConnection](../types/PhoneConnection.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => string, 'ipv6' => string, 'port' => int, 'peer_tag' => bytes, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/phone_phoneCall.md
Normal file
27
docs/API_docs/constructors/phone_phoneCall.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: phone.phoneCall
|
||||
description: phone_phoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: phone.phoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|phone\_call|[PhoneCall](../types/PhoneCall.md) | Required|
|
||||
|users|Array of [User](../types/User.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [Vector t], ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/privacyKeyPhoneCall.md
Normal file
21
docs/API_docs/constructors/privacyKeyPhoneCall.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: privacyKeyPhoneCall
|
||||
description: privacyKeyPhoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: privacyKeyPhoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [PrivacyKey](../types/PrivacyKey.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$privacyKeyPhoneCall = ['_' => 'privacyKeyPhoneCall', ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textBold.md
Normal file
26
docs/API_docs/constructors/textBold.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textBold
|
||||
description: textBold attributes, type and example
|
||||
---
|
||||
## Constructor: textBold
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textBold = ['_' => 'textBold', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textConcat.md
Normal file
26
docs/API_docs/constructors/textConcat.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textConcat
|
||||
description: textConcat attributes, type and example
|
||||
---
|
||||
## Constructor: textConcat
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|texts|Array of [RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textConcat = ['_' => 'textConcat', 'texts' => [Vector t], ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/textEmail.md
Normal file
27
docs/API_docs/constructors/textEmail.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: textEmail
|
||||
description: textEmail attributes, type and example
|
||||
---
|
||||
## Constructor: textEmail
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|email|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textEmail = ['_' => 'textEmail', 'text' => RichText, 'email' => string, ];
|
||||
```
|
||||
|
21
docs/API_docs/constructors/textEmpty.md
Normal file
21
docs/API_docs/constructors/textEmpty.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: textEmpty
|
||||
description: textEmpty attributes, type and example
|
||||
---
|
||||
## Constructor: textEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textEmpty = ['_' => 'textEmpty', ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textFixed.md
Normal file
26
docs/API_docs/constructors/textFixed.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textFixed
|
||||
description: textFixed attributes, type and example
|
||||
---
|
||||
## Constructor: textFixed
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textFixed = ['_' => 'textFixed', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textItalic.md
Normal file
26
docs/API_docs/constructors/textItalic.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textItalic
|
||||
description: textItalic attributes, type and example
|
||||
---
|
||||
## Constructor: textItalic
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textItalic = ['_' => 'textItalic', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textPlain.md
Normal file
26
docs/API_docs/constructors/textPlain.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textPlain
|
||||
description: textPlain attributes, type and example
|
||||
---
|
||||
## Constructor: textPlain
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textPlain = ['_' => 'textPlain', 'text' => string, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textStrike.md
Normal file
26
docs/API_docs/constructors/textStrike.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textStrike
|
||||
description: textStrike attributes, type and example
|
||||
---
|
||||
## Constructor: textStrike
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textStrike = ['_' => 'textStrike', 'text' => RichText, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/textUnderline.md
Normal file
26
docs/API_docs/constructors/textUnderline.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: textUnderline
|
||||
description: textUnderline attributes, type and example
|
||||
---
|
||||
## Constructor: textUnderline
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textUnderline = ['_' => 'textUnderline', 'text' => RichText, ];
|
||||
```
|
||||
|
28
docs/API_docs/constructors/textUrl.md
Normal file
28
docs/API_docs/constructors/textUrl.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: textUrl
|
||||
description: textUrl attributes, type and example
|
||||
---
|
||||
## Constructor: textUrl
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|text|[RichText](../types/RichText.md) | Required|
|
||||
|url|[string](../types/string.md) | Required|
|
||||
|webpage\_id|[long](../types/long.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [RichText](../types/RichText.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$textUrl = ['_' => 'textUrl', 'text' => RichText, 'url' => string, 'webpage_id' => long, ];
|
||||
```
|
||||
|
29
docs/API_docs/constructors/updateChannelWebPage.md
Normal file
29
docs/API_docs/constructors/updateChannelWebPage.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: updateChannelWebPage
|
||||
description: updateChannelWebPage attributes, type and example
|
||||
---
|
||||
## Constructor: updateChannelWebPage
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|channel\_id|[int](../types/int.md) | Required|
|
||||
|webpage|[WebPage](../types/WebPage.md) | Required|
|
||||
|pts|[int](../types/int.md) | Required|
|
||||
|pts\_count|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [Update](../types/Update.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updateChannelWebPage = ['_' => 'updateChannelWebPage', 'channel_id' => int, 'webpage' => WebPage, 'pts' => int, 'pts_count' => int, ];
|
||||
```
|
||||
|
27
docs/API_docs/constructors/updateDialogPinned.md
Normal file
27
docs/API_docs/constructors/updateDialogPinned.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: updateDialogPinned
|
||||
description: updateDialogPinned attributes, type and example
|
||||
---
|
||||
## Constructor: updateDialogPinned
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pinned|[Bool](../types/Bool.md) | Optional|
|
||||
|peer|[Peer](../types/Peer.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [Update](../types/Update.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updateDialogPinned = ['_' => 'updateDialogPinned', 'pinned' => true, 'peer' => Peer, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/updatePhoneCall.md
Normal file
26
docs/API_docs/constructors/updatePhoneCall.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: updatePhoneCall
|
||||
description: updatePhoneCall attributes, type and example
|
||||
---
|
||||
## Constructor: updatePhoneCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|phone\_call|[PhoneCall](../types/PhoneCall.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [Update](../types/Update.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updatePhoneCall = ['_' => 'updatePhoneCall', 'phone_call' => PhoneCall, ];
|
||||
```
|
||||
|
26
docs/API_docs/constructors/updatePinnedDialogs.md
Normal file
26
docs/API_docs/constructors/updatePinnedDialogs.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: updatePinnedDialogs
|
||||
description: updatePinnedDialogs attributes, type and example
|
||||
---
|
||||
## Constructor: updatePinnedDialogs
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|order|Array of [Peer](../types/Peer.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [Update](../types/Update.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [Vector t], ];
|
||||
```
|
||||
|
@ -11,10 +11,12 @@ description: updateServiceNotification attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|popup|[Bool](../types/Bool.md) | Optional|
|
||||
|inbox\_date|[int](../types/int.md) | Optional|
|
||||
|type|[string](../types/string.md) | Required|
|
||||
|message|[string](../types/string.md) | Required|
|
||||
|media|[MessageMedia](../types/MessageMedia.md) | Required|
|
||||
|popup|[Bool](../types/Bool.md) | Required|
|
||||
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Required|
|
||||
|
||||
|
||||
|
||||
@ -24,6 +26,6 @@ description: updateServiceNotification attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updateServiceNotification = ['_' => 'updateServiceNotification', 'type' => string, 'message' => string, 'media' => MessageMedia, 'popup' => Bool, ];
|
||||
$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => true, 'inbox_date' => int, 'type' => string, 'message' => string, 'media' => MessageMedia, 'entities' => [Vector t], ];
|
||||
```
|
||||
|
||||
|
26
docs/API_docs/constructors/updates_differenceTooLong.md
Normal file
26
docs/API_docs/constructors/updates_differenceTooLong.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: updates.differenceTooLong
|
||||
description: updates_differenceTooLong attributes, type and example
|
||||
---
|
||||
## Constructor: updates.differenceTooLong
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pts|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
### Type: [updates\_Difference](../types/updates_Difference.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$updates_differenceTooLong = ['_' => 'updates.differenceTooLong', 'pts' => int, ];
|
||||
```
|
||||
|
@ -12,12 +12,14 @@ description: userFull attributes, type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|blocked|[Bool](../types/Bool.md) | Optional|
|
||||
|phone\_calls\_available|[Bool](../types/Bool.md) | Optional|
|
||||
|user|[User](../types/User.md) | Required|
|
||||
|about|[string](../types/string.md) | Optional|
|
||||
|link|[contacts\_Link](../types/contacts_Link.md) | Required|
|
||||
|profile\_photo|[Photo](../types/Photo.md) | Optional|
|
||||
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required|
|
||||
|bot\_info|[BotInfo](../types/BotInfo.md) | Optional|
|
||||
|common\_chats\_count|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
|
||||
@ -27,6 +29,6 @@ description: userFull attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$userFull = ['_' => 'userFull', 'blocked' => true, 'user' => User, 'about' => string, 'link' => contacts.Link, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, ];
|
||||
$userFull = ['_' => 'userFull', 'blocked' => true, 'phone_calls_available' => true, 'user' => User, 'about' => string, 'link' => contacts.Link, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, 'common_chats_count' => int, ];
|
||||
```
|
||||
|
||||
|
@ -14,6 +14,7 @@ description: webPage attributes, type and example
|
||||
|id|[long](../types/long.md) | Required|
|
||||
|url|[string](../types/string.md) | Required|
|
||||
|display\_url|[string](../types/string.md) | Required|
|
||||
|hash|[int](../types/int.md) | Required|
|
||||
|type|[string](../types/string.md) | Optional|
|
||||
|site\_name|[string](../types/string.md) | Optional|
|
||||
|title|[string](../types/string.md) | Optional|
|
||||
@ -26,6 +27,7 @@ description: webPage attributes, type and example
|
||||
|duration|[int](../types/int.md) | Optional|
|
||||
|author|[string](../types/string.md) | Optional|
|
||||
|document|[Document](../types/Document.md) | Optional|
|
||||
|cached\_page|[Page](../types/Page.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -35,6 +37,6 @@ description: webPage attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$webPage = ['_' => 'webPage', 'id' => long, 'url' => string, 'display_url' => string, 'type' => string, 'site_name' => string, 'title' => string, 'description' => string, 'photo' => Photo, 'embed_url' => string, 'embed_type' => string, 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => string, 'document' => Document, ];
|
||||
$webPage = ['_' => 'webPage', 'id' => long, 'url' => string, 'display_url' => string, 'hash' => int, 'type' => string, 'site_name' => string, 'title' => string, 'description' => string, 'photo' => Photo, 'embed_url' => string, 'embed_type' => string, 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => string, 'document' => Document, 'cached_page' => Page, ];
|
||||
```
|
||||
|
||||
|
21
docs/API_docs/constructors/webPageNotModified.md
Normal file
21
docs/API_docs/constructors/webPageNotModified.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: webPageNotModified
|
||||
description: webPageNotModified attributes, type and example
|
||||
---
|
||||
## Constructor: webPageNotModified
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [WebPage](../types/WebPage.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$webPageNotModified = ['_' => 'webPageNotModified', ];
|
||||
```
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: MadelineProto API documentation (layer 57)
|
||||
description: MadelineProto API documentation (layer 57)
|
||||
title: MadelineProto API documentation (layer 62)
|
||||
description: MadelineProto API documentation (layer 62)
|
||||
---
|
||||
# MadelineProto API documentation (layer 57)
|
||||
# MadelineProto API documentation (layer 62)
|
||||
|
||||
[Methods](methods/)
|
||||
|
||||
|
41
docs/API_docs/methods/contest_saveDeveloperInfo.md
Normal file
41
docs/API_docs/methods/contest_saveDeveloperInfo.md
Normal file
@ -0,0 +1,41 @@
|
||||
---
|
||||
title: contest.saveDeveloperInfo
|
||||
description: contest.saveDeveloperInfo parameters, return type and example
|
||||
---
|
||||
## Method: contest.saveDeveloperInfo
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|vk\_id|[int](../types/int.md) | Required|
|
||||
|name|[string](../types/string.md) | Required|
|
||||
|phone\_number|[string](../types/string.md) | Required|
|
||||
|age|[int](../types/int.md) | Required|
|
||||
|city|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => string, 'phone_number' => string, 'age' => int, 'city' => string, ]);
|
||||
```
|
38
docs/API_docs/methods/help_setBotUpdatesStatus.md
Normal file
38
docs/API_docs/methods/help_setBotUpdatesStatus.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: help.setBotUpdatesStatus
|
||||
description: help.setBotUpdatesStatus parameters, return type and example
|
||||
---
|
||||
## Method: help.setBotUpdatesStatus
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pending\_updates\_count|[int](../types/int.md) | Required|
|
||||
|message|[string](../types/string.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => string, ]);
|
||||
```
|
@ -179,6 +179,9 @@ $MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../type
|
||||
|
||||
$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) == [$Bool](../types/Bool.md)<a name="contacts_unblock"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="contest_saveDeveloperInfo"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) == [$help\_AppChangelog](../types/help_AppChangelog.md)<a name="help_getAppChangelog"></a>
|
||||
|
||||
@ -196,6 +199,8 @@ $MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) == [$
|
||||
|
||||
$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) == [$Bool](../types/Bool.md)<a name="help_saveAppLog"></a>
|
||||
|
||||
$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="help_setBotUpdatesStatus"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[initConnection](initConnection.md)(\['api_id' => [int](../types/int.md), 'device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) == [$X](../types/X.md)<a name="initConnection"></a>
|
||||
|
||||
@ -226,7 +231,7 @@ $MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_i
|
||||
|
||||
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) == [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
|
||||
|
||||
$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_deleteMessages"></a>
|
||||
$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_deleteMessages"></a>
|
||||
|
||||
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a>
|
||||
|
||||
@ -246,6 +251,8 @@ $MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer'
|
||||
|
||||
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) == [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a>
|
||||
|
||||
$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) == [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getAllChats"></a>
|
||||
|
||||
$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) == [$Updates](../types/Updates.md)<a name="messages_getAllDrafts"></a>
|
||||
|
||||
$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_AllStickers](../types/messages_AllStickers.md)<a name="messages_getAllStickers"></a>
|
||||
@ -258,9 +265,11 @@ $MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.m
|
||||
|
||||
$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getChats"></a>
|
||||
|
||||
$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getCommonChats"></a>
|
||||
|
||||
$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) == [$messages\_DhConfig](../types/messages_DhConfig.md)<a name="messages_getDhConfig"></a>
|
||||
|
||||
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) == [$messages\_Dialogs](../types/messages_Dialogs.md)<a name="messages_getDialogs"></a>
|
||||
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.md), 'offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) == [$messages\_Dialogs](../types/messages_Dialogs.md)<a name="messages_getDialogs"></a>
|
||||
|
||||
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) == [$Document](../types/Document.md)<a name="messages_getDocumentByHash"></a>
|
||||
|
||||
@ -288,12 +297,16 @@ $MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers'
|
||||
|
||||
$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$PeerSettings](../types/PeerSettings.md)<a name="messages_getPeerSettings"></a>
|
||||
|
||||
$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) == [$messages\_PeerDialogs](../types/messages_PeerDialogs.md)<a name="messages_getPinnedDialogs"></a>
|
||||
|
||||
$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) == [$messages\_RecentStickers](../types/messages_RecentStickers.md)<a name="messages_getRecentStickers"></a>
|
||||
|
||||
$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_SavedGifs](../types/messages_SavedGifs.md)<a name="messages_getSavedGifs"></a>
|
||||
|
||||
$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) == [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="messages_getStickerSet"></a>
|
||||
|
||||
$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) == [$WebPage](../types/WebPage.md)<a name="messages_getWebPage"></a>
|
||||
|
||||
$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) == [$MessageMedia](../types/MessageMedia.md)<a name="messages_getWebPagePreview"></a>
|
||||
|
||||
$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="messages_hideReportSpam"></a>
|
||||
@ -316,8 +329,12 @@ $MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['ma
|
||||
|
||||
$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) == [$Vector\_of\_long](../types/long.md)<a name="messages_receivedQueue"></a>
|
||||
|
||||
$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_reorderPinnedDialogs"></a>
|
||||
|
||||
$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_reorderStickerSets"></a>
|
||||
|
||||
$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) == [$Bool](../types/Bool.md)<a name="messages_reportEncryptedSpam"></a>
|
||||
|
||||
$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="messages_reportSpam"></a>
|
||||
|
||||
$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) == [$EncryptedChat](../types/EncryptedChat.md)<a name="messages_requestEncryption"></a>
|
||||
@ -346,15 +363,15 @@ $MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool
|
||||
|
||||
$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) == [$Updates](../types/Updates.md)<a name="messages_sendMessage"></a>
|
||||
|
||||
$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setBotCallbackAnswer"></a>
|
||||
$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setBotCallbackAnswer"></a>
|
||||
|
||||
$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setEncryptedTyping"></a>
|
||||
|
||||
$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_setGameScore"></a>
|
||||
$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_setGameScore"></a>
|
||||
|
||||
$MadelineProto->[messages->setInlineBotResults](messages_setInlineBotResults.md)(\['gallery' => [Bool](../types/Bool.md), 'private' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'results' => \[[InputBotInlineResult](../types/InputBotInlineResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setInlineBotResults"></a>
|
||||
|
||||
$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setInlineGameScore"></a>
|
||||
$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setInlineGameScore"></a>
|
||||
|
||||
$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setTyping"></a>
|
||||
|
||||
@ -362,8 +379,19 @@ $MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser
|
||||
|
||||
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) == [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
|
||||
|
||||
$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="messages_toggleDialogPin"></a>
|
||||
|
||||
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) == [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) == [$phone\_PhoneCall](../types/phone_PhoneCall.md)<a name="phone_acceptCall"></a>
|
||||
|
||||
$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) == [$Bool](../types/Bool.md)<a name="phone_discardCall"></a>
|
||||
|
||||
$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) == [$Bool](../types/Bool.md)<a name="phone_receivedCall"></a>
|
||||
|
||||
$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) == [$phone\_PhoneCall](../types/phone_PhoneCall.md)<a name="phone_requestCall"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) == [$Vector\_of\_long](../types/long.md)<a name="photos_deletePhotos"></a>
|
||||
|
||||
@ -374,9 +402,9 @@ $MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id
|
||||
$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) == [$photos\_Photo](../types/photos_Photo.md)<a name="photos_uploadProfilePhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$updates\_ChannelDifference](../types/updates_ChannelDifference.md)<a name="updates_getChannelDifference"></a>
|
||||
<br><br>$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.md), 'channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$updates\_ChannelDifference](../types/updates_ChannelDifference.md)<a name="updates_getChannelDifference"></a>
|
||||
|
||||
$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) == [$updates\_Difference](../types/updates_Difference.md)<a name="updates_getDifference"></a>
|
||||
$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) == [$updates\_Difference](../types/updates_Difference.md)<a name="updates_getDifference"></a>
|
||||
|
||||
$MadelineProto->[updates->getState](updates_getState.md)(\[\]) == [$updates\_State](../types/updates_State.md)<a name="updates_getState"></a>
|
||||
|
||||
|
@ -10,6 +10,7 @@ description: messages.deleteMessages parameters, return type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|revoke|[Bool](../types/Bool.md) | Optional|
|
||||
|id|Array of [int](../types/int.md) | Required|
|
||||
|
||||
|
||||
@ -33,5 +34,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int], ]);
|
||||
$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int], ]);
|
||||
```
|
37
docs/API_docs/methods/messages_getAllChats.md
Normal file
37
docs/API_docs/methods/messages_getAllChats.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: messages.getAllChats
|
||||
description: messages.getAllChats parameters, return type and example
|
||||
---
|
||||
## Method: messages.getAllChats
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|except\_ids|Array of [int](../types/int.md) | Required|
|
||||
|
||||
|
||||
### Return type: [messages\_Chats](../types/messages_Chats.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int], ]);
|
||||
```
|
39
docs/API_docs/methods/messages_getCommonChats.md
Normal file
39
docs/API_docs/methods/messages_getCommonChats.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: messages.getCommonChats
|
||||
description: messages.getCommonChats parameters, return type and example
|
||||
---
|
||||
## Method: messages.getCommonChats
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|user\_id|[InputUser](../types/InputUser.md) | Required|
|
||||
|max\_id|[int](../types/int.md) | Required|
|
||||
|limit|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
### Return type: [messages\_Chats](../types/messages_Chats.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]);
|
||||
```
|
@ -10,6 +10,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|exclude\_pinned|[Bool](../types/Bool.md) | Optional|
|
||||
|offset\_date|[int](../types/int.md) | Required|
|
||||
|offset\_id|[int](../types/int.md) | Required|
|
||||
|offset\_peer|[InputPeer](../types/InputPeer.md) | Required|
|
||||
@ -36,5 +37,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]);
|
||||
$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]);
|
||||
```
|
32
docs/API_docs/methods/messages_getPinnedDialogs.md
Normal file
32
docs/API_docs/methods/messages_getPinnedDialogs.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
title: messages.getPinnedDialogs
|
||||
description: messages.getPinnedDialogs parameters, return type and example
|
||||
---
|
||||
## Method: messages.getPinnedDialogs
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs();
|
||||
```
|
38
docs/API_docs/methods/messages_getWebPage.md
Normal file
38
docs/API_docs/methods/messages_getWebPage.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: messages.getWebPage
|
||||
description: messages.getWebPage parameters, return type and example
|
||||
---
|
||||
## Method: messages.getWebPage
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|url|[string](../types/string.md) | Required|
|
||||
|hash|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
### Return type: [WebPage](../types/WebPage.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$WebPage = $MadelineProto->messages->getWebPage(['url' => string, 'hash' => int, ]);
|
||||
```
|
38
docs/API_docs/methods/messages_reorderPinnedDialogs.md
Normal file
38
docs/API_docs/methods/messages_reorderPinnedDialogs.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: messages.reorderPinnedDialogs
|
||||
description: messages.reorderPinnedDialogs parameters, return type and example
|
||||
---
|
||||
## Method: messages.reorderPinnedDialogs
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|force|[Bool](../types/Bool.md) | Optional|
|
||||
|order|Array of [InputPeer](../types/InputPeer.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer], ]);
|
||||
```
|
37
docs/API_docs/methods/messages_reportEncryptedSpam.md
Normal file
37
docs/API_docs/methods/messages_reportEncryptedSpam.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: messages.reportEncryptedSpam
|
||||
description: messages.reportEncryptedSpam parameters, return type and example
|
||||
---
|
||||
## Method: messages.reportEncryptedSpam
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]);
|
||||
```
|
@ -14,6 +14,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example
|
||||
|query\_id|[long](../types/long.md) | Required|
|
||||
|message|[string](../types/string.md) | Optional|
|
||||
|url|[string](../types/string.md) | Optional|
|
||||
|cache\_time|[int](../types/int.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
@ -36,5 +37,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => string, 'url' => string, ]);
|
||||
$Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => string, 'url' => string, 'cache_time' => int, ]);
|
||||
```
|
@ -11,6 +11,7 @@ description: messages.setGameScore parameters, return type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|edit\_message|[Bool](../types/Bool.md) | Optional|
|
||||
|force|[Bool](../types/Bool.md) | Optional|
|
||||
|peer|[InputPeer](../types/InputPeer.md) | Required|
|
||||
|id|[int](../types/int.md) | Required|
|
||||
|user\_id|[InputUser](../types/InputUser.md) | Required|
|
||||
@ -37,5 +38,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]);
|
||||
$Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]);
|
||||
```
|
@ -11,6 +11,7 @@ description: messages.setInlineGameScore parameters, return type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|edit\_message|[Bool](../types/Bool.md) | Optional|
|
||||
|force|[Bool](../types/Bool.md) | Optional|
|
||||
|id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Required|
|
||||
|user\_id|[InputUser](../types/InputUser.md) | Required|
|
||||
|score|[int](../types/int.md) | Required|
|
||||
@ -36,5 +37,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]);
|
||||
$Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]);
|
||||
```
|
38
docs/API_docs/methods/messages_toggleDialogPin.md
Normal file
38
docs/API_docs/methods/messages_toggleDialogPin.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: messages.toggleDialogPin
|
||||
description: messages.toggleDialogPin parameters, return type and example
|
||||
---
|
||||
## Method: messages.toggleDialogPin
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pinned|[Bool](../types/Bool.md) | Optional|
|
||||
|peer|[InputPeer](../types/InputPeer.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]);
|
||||
```
|
40
docs/API_docs/methods/phone_acceptCall.md
Normal file
40
docs/API_docs/methods/phone_acceptCall.md
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
title: phone.acceptCall
|
||||
description: phone.acceptCall parameters, return type and example
|
||||
---
|
||||
## Method: phone.acceptCall
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Required|
|
||||
|g\_b|[bytes](../types/bytes.md) | Required|
|
||||
|key\_fingerprint|[long](../types/long.md) | Required|
|
||||
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Required|
|
||||
|
||||
|
||||
### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$phone_PhoneCall = $MadelineProto->phone->acceptCall(['peer' => InputPhoneCall, 'g_b' => bytes, 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, ]);
|
||||
```
|
40
docs/API_docs/methods/phone_discardCall.md
Normal file
40
docs/API_docs/methods/phone_discardCall.md
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
title: phone.discardCall
|
||||
description: phone.discardCall parameters, return type and example
|
||||
---
|
||||
## Method: phone.discardCall
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Required|
|
||||
|duration|[int](../types/int.md) | Required|
|
||||
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Required|
|
||||
|connection\_id|[long](../types/long.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->phone->discardCall(['peer' => InputPhoneCall, 'duration' => int, 'reason' => PhoneCallDiscardReason, 'connection_id' => long, ]);
|
||||
```
|
37
docs/API_docs/methods/phone_receivedCall.md
Normal file
37
docs/API_docs/methods/phone_receivedCall.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: phone.receivedCall
|
||||
description: phone.receivedCall parameters, return type and example
|
||||
---
|
||||
## Method: phone.receivedCall
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Required|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]);
|
||||
```
|
39
docs/API_docs/methods/phone_requestCall.md
Normal file
39
docs/API_docs/methods/phone_requestCall.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: phone.requestCall
|
||||
description: phone.requestCall parameters, return type and example
|
||||
---
|
||||
## Method: phone.requestCall
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|user\_id|[InputUser](../types/InputUser.md) | Required|
|
||||
|g\_a|[bytes](../types/bytes.md) | Required|
|
||||
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Required|
|
||||
|
||||
|
||||
### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
if (isset($token)) {
|
||||
$this->bot_login($token);
|
||||
}
|
||||
if (isset($number)) {
|
||||
$sentCode = $MadelineProto->phone_login($number);
|
||||
echo 'Enter the code you received: ';
|
||||
$code = '';
|
||||
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||
$code .= fgetc(STDIN);
|
||||
}
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$phone_PhoneCall = $MadelineProto->phone->requestCall(['user_id' => InputUser, 'g_a' => bytes, 'protocol' => PhoneCallProtocol, ]);
|
||||
```
|
@ -10,6 +10,7 @@ description: updates.getChannelDifference parameters, return type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|force|[Bool](../types/Bool.md) | Optional|
|
||||
|channel|[InputChannel](../types/InputChannel.md) | Required|
|
||||
|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Required|
|
||||
|pts|[int](../types/int.md) | Required|
|
||||
@ -36,5 +37,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$updates_ChannelDifference = $MadelineProto->updates->getChannelDifference(['channel' => InputChannel, 'filter' => ChannelMessagesFilter, 'pts' => int, 'limit' => int, ]);
|
||||
$updates_ChannelDifference = $MadelineProto->updates->getChannelDifference(['force' => Bool, 'channel' => InputChannel, 'filter' => ChannelMessagesFilter, 'pts' => int, 'limit' => int, ]);
|
||||
```
|
@ -11,6 +11,7 @@ description: updates.getDifference parameters, return type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|pts|[int](../types/int.md) | Required|
|
||||
|pts\_total\_limit|[int](../types/int.md) | Optional|
|
||||
|date|[int](../types/int.md) | Required|
|
||||
|qts|[int](../types/int.md) | Required|
|
||||
|
||||
@ -35,5 +36,5 @@ if (isset($number)) {
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'date' => int, 'qts' => int, ]);
|
||||
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'pts_total_limit' => int, 'date' => int, 'qts' => int, ]);
|
||||
```
|
19
docs/API_docs/types/InputPhoneCall.md
Normal file
19
docs/API_docs/types/InputPhoneCall.md
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
title: InputPhoneCall
|
||||
description: constructors and methods of type InputPhoneCall
|
||||
---
|
||||
## Type: InputPhoneCall
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[inputPhoneCall](../constructors/inputPhoneCall.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -13,6 +13,8 @@ description: constructors and methods of type InputPrivacyKey
|
||||
|
||||
[inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md)
|
||||
|
||||
[inputPrivacyKeyPhoneCall](../constructors/inputPrivacyKeyPhoneCall.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
@ -37,6 +37,8 @@ description: constructors and methods of type MessageAction
|
||||
|
||||
[messageActionGameScore](../constructors/messageActionGameScore.md)
|
||||
|
||||
[messageActionPhoneCall](../constructors/messageActionPhoneCall.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
@ -31,6 +31,8 @@ description: constructors and methods of type MessagesFilter
|
||||
|
||||
[inputMessagesFilterChatPhotos](../constructors/inputMessagesFilterChatPhotos.md)
|
||||
|
||||
[inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
21
docs/API_docs/types/Page.md
Normal file
21
docs/API_docs/types/Page.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: Page
|
||||
description: constructors and methods of type Page
|
||||
---
|
||||
## Type: Page
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[pagePart](../constructors/pagePart.md)
|
||||
|
||||
[pageFull](../constructors/pageFull.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
59
docs/API_docs/types/PageBlock.md
Normal file
59
docs/API_docs/types/PageBlock.md
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
title: PageBlock
|
||||
description: constructors and methods of type PageBlock
|
||||
---
|
||||
## Type: PageBlock
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[pageBlockUnsupported](../constructors/pageBlockUnsupported.md)
|
||||
|
||||
[pageBlockTitle](../constructors/pageBlockTitle.md)
|
||||
|
||||
[pageBlockSubtitle](../constructors/pageBlockSubtitle.md)
|
||||
|
||||
[pageBlockAuthorDate](../constructors/pageBlockAuthorDate.md)
|
||||
|
||||
[pageBlockHeader](../constructors/pageBlockHeader.md)
|
||||
|
||||
[pageBlockSubheader](../constructors/pageBlockSubheader.md)
|
||||
|
||||
[pageBlockParagraph](../constructors/pageBlockParagraph.md)
|
||||
|
||||
[pageBlockPreformatted](../constructors/pageBlockPreformatted.md)
|
||||
|
||||
[pageBlockFooter](../constructors/pageBlockFooter.md)
|
||||
|
||||
[pageBlockDivider](../constructors/pageBlockDivider.md)
|
||||
|
||||
[pageBlockAnchor](../constructors/pageBlockAnchor.md)
|
||||
|
||||
[pageBlockList](../constructors/pageBlockList.md)
|
||||
|
||||
[pageBlockBlockquote](../constructors/pageBlockBlockquote.md)
|
||||
|
||||
[pageBlockPullquote](../constructors/pageBlockPullquote.md)
|
||||
|
||||
[pageBlockPhoto](../constructors/pageBlockPhoto.md)
|
||||
|
||||
[pageBlockVideo](../constructors/pageBlockVideo.md)
|
||||
|
||||
[pageBlockCover](../constructors/pageBlockCover.md)
|
||||
|
||||
[pageBlockEmbed](../constructors/pageBlockEmbed.md)
|
||||
|
||||
[pageBlockEmbedPost](../constructors/pageBlockEmbedPost.md)
|
||||
|
||||
[pageBlockCollage](../constructors/pageBlockCollage.md)
|
||||
|
||||
[pageBlockSlideshow](../constructors/pageBlockSlideshow.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
27
docs/API_docs/types/PhoneCall.md
Normal file
27
docs/API_docs/types/PhoneCall.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: PhoneCall
|
||||
description: constructors and methods of type PhoneCall
|
||||
---
|
||||
## Type: PhoneCall
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[phoneCallEmpty](../constructors/phoneCallEmpty.md)
|
||||
|
||||
[phoneCallWaiting](../constructors/phoneCallWaiting.md)
|
||||
|
||||
[phoneCallRequested](../constructors/phoneCallRequested.md)
|
||||
|
||||
[phoneCall](../constructors/phoneCall.md)
|
||||
|
||||
[phoneCallDiscarded](../constructors/phoneCallDiscarded.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
25
docs/API_docs/types/PhoneCallDiscardReason.md
Normal file
25
docs/API_docs/types/PhoneCallDiscardReason.md
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
title: PhoneCallDiscardReason
|
||||
description: constructors and methods of type PhoneCallDiscardReason
|
||||
---
|
||||
## Type: PhoneCallDiscardReason
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[phoneCallDiscardReasonMissed](../constructors/phoneCallDiscardReasonMissed.md)
|
||||
|
||||
[phoneCallDiscardReasonDisconnect](../constructors/phoneCallDiscardReasonDisconnect.md)
|
||||
|
||||
[phoneCallDiscardReasonHangup](../constructors/phoneCallDiscardReasonHangup.md)
|
||||
|
||||
[phoneCallDiscardReasonBusy](../constructors/phoneCallDiscardReasonBusy.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user