Removed MTProto constructors from API scheme
This commit is contained in:
parent
ec4fc804bb
commit
0cd071cdb8
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: bad_msg_notification
|
||||
description: bad_msg_notification attributes, type and example
|
||||
---
|
||||
## Constructor: bad\_msg\_notification
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|bad\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|bad\_msg\_seqno|[int](../types/int.md) | Yes|
|
||||
|error\_code|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [BadMsgNotification](../types/BadMsgNotification.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$bad_msg_notification = ['_' => 'bad_msg_notification', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "bad_msg_notification", "bad_msg_id": long, "bad_msg_seqno": int, "error_code": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
bad_msg_notification={_='bad_msg_notification', bad_msg_id=long, bad_msg_seqno=int, error_code=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
---
|
||||
title: bad_server_salt
|
||||
description: bad_server_salt attributes, type and example
|
||||
---
|
||||
## Constructor: bad\_server\_salt
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|bad\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|bad\_msg\_seqno|[int](../types/int.md) | Yes|
|
||||
|error\_code|[int](../types/int.md) | Yes|
|
||||
|new\_server\_salt|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [BadMsgNotification](../types/BadMsgNotification.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$bad_server_salt = ['_' => 'bad_server_salt', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "bad_server_salt", "bad_msg_id": long, "bad_msg_seqno": int, "error_code": int, "new_server_salt": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
bad_server_salt={_='bad_server_salt', bad_msg_id=long, bad_msg_seqno=int, error_code=int, new_server_salt=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
---
|
||||
title: client_DH_inner_data
|
||||
description: client_DH_inner_data attributes, type and example
|
||||
---
|
||||
## Constructor: client\_DH\_inner\_data
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|retry\_id|[long](../types/long.md) | Yes|
|
||||
|g\_b|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Client\_DH\_Inner\_Data](../types/Client_DH_Inner_Data.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$client_DH_inner_data = ['_' => 'client_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'retry_id' => long, 'g_b' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "client_DH_inner_data", "nonce": int128, "server_nonce": int128, "retry_id": long, "g_b": "string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
client_DH_inner_data={_='client_DH_inner_data', nonce=int128, server_nonce=int128, retry_id=long, g_b='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,37 +0,0 @@
|
||||
---
|
||||
title: destroy_auth_key_fail
|
||||
description: destroy_auth_key_fail attributes, type and example
|
||||
---
|
||||
## Constructor: destroy\_auth\_key\_fail
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$destroy_auth_key_fail = ['_' => 'destroy_auth_key_fail'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "destroy_auth_key_fail"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
destroy_auth_key_fail={_='destroy_auth_key_fail'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,37 +0,0 @@
|
||||
---
|
||||
title: destroy_auth_key_none
|
||||
description: destroy_auth_key_none attributes, type and example
|
||||
---
|
||||
## Constructor: destroy\_auth\_key\_none
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$destroy_auth_key_none = ['_' => 'destroy_auth_key_none'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "destroy_auth_key_none"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
destroy_auth_key_none={_='destroy_auth_key_none'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,37 +0,0 @@
|
||||
---
|
||||
title: destroy_auth_key_ok
|
||||
description: destroy_auth_key_ok attributes, type and example
|
||||
---
|
||||
## Constructor: destroy\_auth\_key\_ok
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$destroy_auth_key_ok = ['_' => 'destroy_auth_key_ok'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "destroy_auth_key_ok"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
destroy_auth_key_ok={_='destroy_auth_key_ok'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
---
|
||||
title: destroy_session_none
|
||||
description: destroy_session_none attributes, type and example
|
||||
---
|
||||
## Constructor: destroy\_session\_none
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|session\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [DestroySessionRes](../types/DestroySessionRes.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$destroy_session_none = ['_' => 'destroy_session_none', 'session_id' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "destroy_session_none", "session_id": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
destroy_session_none={_='destroy_session_none', session_id=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
---
|
||||
title: destroy_session_ok
|
||||
description: destroy_session_ok attributes, type and example
|
||||
---
|
||||
## Constructor: destroy\_session\_ok
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|session\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [DestroySessionRes](../types/DestroySessionRes.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$destroy_session_ok = ['_' => 'destroy_session_ok', 'session_id' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "destroy_session_ok", "session_id": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
destroy_session_ok={_='destroy_session_ok', session_id=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: dh_gen_fail
|
||||
description: dh_gen_fail attributes, type and example
|
||||
---
|
||||
## Constructor: dh\_gen\_fail
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|new\_nonce\_hash3|[int128](../types/int128.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$dh_gen_fail = ['_' => 'dh_gen_fail', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash3' => int128];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "dh_gen_fail", "nonce": int128, "server_nonce": int128, "new_nonce_hash3": int128}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
dh_gen_fail={_='dh_gen_fail', nonce=int128, server_nonce=int128, new_nonce_hash3=int128}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: dh_gen_ok
|
||||
description: dh_gen_ok attributes, type and example
|
||||
---
|
||||
## Constructor: dh\_gen\_ok
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|new\_nonce\_hash1|[int128](../types/int128.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$dh_gen_ok = ['_' => 'dh_gen_ok', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash1' => int128];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "dh_gen_ok", "nonce": int128, "server_nonce": int128, "new_nonce_hash1": int128}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
dh_gen_ok={_='dh_gen_ok', nonce=int128, server_nonce=int128, new_nonce_hash1=int128}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: dh_gen_retry
|
||||
description: dh_gen_retry attributes, type and example
|
||||
---
|
||||
## Constructor: dh\_gen\_retry
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|new\_nonce\_hash2|[int128](../types/int128.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$dh_gen_retry = ['_' => 'dh_gen_retry', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash2' => int128];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "dh_gen_retry", "nonce": int128, "server_nonce": int128, "new_nonce_hash2": int128}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
dh_gen_retry={_='dh_gen_retry', nonce=int128, server_nonce=int128, new_nonce_hash2=int128}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: future_salt
|
||||
description: future_salt attributes, type and example
|
||||
---
|
||||
## Constructor: future\_salt
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|valid\_since|[int](../types/int.md) | Yes|
|
||||
|valid\_until|[int](../types/int.md) | Yes|
|
||||
|salt|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [FutureSalt](../types/FutureSalt.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$future_salt = ['_' => 'future_salt', 'valid_since' => int, 'valid_until' => int, 'salt' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "future_salt", "valid_since": int, "valid_until": int, "salt": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
future_salt={_='future_salt', valid_since=int, valid_until=int, salt=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: future_salts
|
||||
description: future_salts attributes, type and example
|
||||
---
|
||||
## Constructor: future\_salts
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|req\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|now|[int](../types/int.md) | Yes|
|
||||
|salts|Array of [future\_salt](../constructors/future_salt.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [FutureSalts](../types/FutureSalts.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$future_salts = ['_' => 'future_salts', 'req_msg_id' => long, 'now' => int, 'salts' => [future_salt]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "future_salts", "req_msg_id": long, "now": int, "salts": [future_salt]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
future_salts={_='future_salts', req_msg_id=long, now=int, salts={future_salt}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
---
|
||||
title: help.configSimple
|
||||
description: help_configSimple attributes, type and example
|
||||
---
|
||||
## Constructor: help.configSimple
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|date|[int](../types/int.md) | Yes|
|
||||
|expires|[int](../types/int.md) | Yes|
|
||||
|dc\_id|[int](../types/int.md) | Yes|
|
||||
|ip\_port\_list|Array of [ipPort](../constructors/ipPort.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [help\_ConfigSimple](../types/help_ConfigSimple.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'dc_id' => int, 'ip_port_list' => [ipPort]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "help.configSimple", "date": int, "expires": int, "dc_id": int, "ip_port_list": [ipPort]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
help_configSimple={_='help.configSimple', date=int, expires=int, dc_id=int, ip_port_list={ipPort}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: http_wait
|
||||
description: http_wait attributes, type and example
|
||||
---
|
||||
## Constructor: http\_wait
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|max\_delay|[int](../types/int.md) | Yes|
|
||||
|wait\_after|[int](../types/int.md) | Yes|
|
||||
|max\_wait|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [HttpWait](../types/HttpWait.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$http_wait = ['_' => 'http_wait', 'max_delay' => int, 'wait_after' => int, 'max_wait' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "http_wait", "max_delay": int, "wait_after": int, "max_wait": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
http_wait={_='http_wait', max_delay=int, wait_after=int, max_wait=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -53,11 +53,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$authorization](../constructors/authorization.md) = \['hash' => [long](../types/long.md), 'device_model' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'api_id' => [int](../types/int.md), 'app_name' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'country' => [string](../types/string.md), 'region' => [string](../types/string.md), \];<a name="authorization"></a>
|
||||
|
||||
***
|
||||
<br><br>[$bad\_msg\_notification](../constructors/bad_msg_notification.md) = \['bad_msg_id' => [long](../types/long.md), 'bad_msg_seqno' => [int](../types/int.md), 'error_code' => [int](../types/int.md), \];<a name="bad_msg_notification"></a>
|
||||
|
||||
[$bad\_server\_salt](../constructors/bad_server_salt.md) = \['bad_msg_id' => [long](../types/long.md), 'bad_msg_seqno' => [int](../types/int.md), 'error_code' => [int](../types/int.md), 'new_server_salt' => [long](../types/long.md), \];<a name="bad_server_salt"></a>
|
||||
|
||||
***
|
||||
<br><br>[$boolFalse](../constructors/boolFalse.md) = \[\];<a name="boolFalse"></a>
|
||||
|
||||
@ -262,9 +257,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\];<a name="chatPhotoEmpty"></a>
|
||||
|
||||
***
|
||||
<br><br>[$client\_DH\_inner\_data](../constructors/client_DH_inner_data.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'retry_id' => [long](../types/long.md), 'g_b' => [string](../types/string.md), \];<a name="client_DH_inner_data"></a>
|
||||
|
||||
***
|
||||
<br><br>[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'default_p2p_contacts' => [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), 'stickers_faved_limit' => [int](../types/int.md), 'channels_read_media_period' => [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), 'me_url_prefix' => [string](../types/string.md), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'disabled_features' => \[[DisabledFeature](../types/DisabledFeature.md)\], \];<a name="config"></a>
|
||||
|
||||
@ -397,24 +389,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$decryptedMessageService\_17](../constructors/decryptedMessageService_17.md) = \['action' => [DecryptedMessageAction](../types/DecryptedMessageAction.md), \];<a name="decryptedMessageService_17"></a>
|
||||
|
||||
***
|
||||
<br><br>[$destroy\_auth\_key\_fail](../constructors/destroy_auth_key_fail.md) = \[\];<a name="destroy_auth_key_fail"></a>
|
||||
|
||||
[$destroy\_auth\_key\_none](../constructors/destroy_auth_key_none.md) = \[\];<a name="destroy_auth_key_none"></a>
|
||||
|
||||
[$destroy\_auth\_key\_ok](../constructors/destroy_auth_key_ok.md) = \[\];<a name="destroy_auth_key_ok"></a>
|
||||
|
||||
[$destroy\_session\_none](../constructors/destroy_session_none.md) = \['session_id' => [long](../types/long.md), \];<a name="destroy_session_none"></a>
|
||||
|
||||
[$destroy\_session\_ok](../constructors/destroy_session_ok.md) = \['session_id' => [long](../types/long.md), \];<a name="destroy_session_ok"></a>
|
||||
|
||||
***
|
||||
<br><br>[$dh\_gen\_fail](../constructors/dh_gen_fail.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash3' => [int128](../types/int128.md), \];<a name="dh_gen_fail"></a>
|
||||
|
||||
[$dh\_gen\_ok](../constructors/dh_gen_ok.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash1' => [int128](../types/int128.md), \];<a name="dh_gen_ok"></a>
|
||||
|
||||
[$dh\_gen\_retry](../constructors/dh_gen_retry.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash2' => [int128](../types/int128.md), \];<a name="dh_gen_retry"></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), 'unread_mentions_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>
|
||||
|
||||
@ -499,11 +473,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$foundGifCached](../constructors/foundGifCached.md) = \['url' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'document' => [Document](../types/Document.md), \];<a name="foundGifCached"></a>
|
||||
|
||||
***
|
||||
<br><br>[$future\_salt](../constructors/future_salt.md) = \['valid_since' => [int](../types/int.md), 'valid_until' => [int](../types/int.md), 'salt' => [long](../types/long.md), \];<a name="future_salt"></a>
|
||||
|
||||
[$future\_salts](../constructors/future_salts.md) = \['req_msg_id' => [long](../types/long.md), 'now' => [int](../types/int.md), 'salts' => \[[future\_salt](../constructors/future_salt.md)\], \];<a name="future_salts"></a>
|
||||
|
||||
***
|
||||
<br><br>[$game](../constructors/game.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'document' => [Document](../types/Document.md), \];<a name="game"></a>
|
||||
|
||||
@ -516,8 +485,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$help\_appUpdate](../constructors/help_appUpdate.md) = \['id' => [int](../types/int.md), 'critical' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'text' => [string](../types/string.md), \];<a name="help_appUpdate"></a>
|
||||
|
||||
[$help\_configSimple](../constructors/help_configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), 'ip_port_list' => \[[ipPort](../constructors/ipPort.md)\], \];<a name="help_configSimple"></a>
|
||||
|
||||
[$help\_inviteText](../constructors/help_inviteText.md) = \['message' => [string](../types/string.md), \];<a name="help_inviteText"></a>
|
||||
|
||||
[$help\_noAppUpdate](../constructors/help_noAppUpdate.md) = \[\];<a name="help_noAppUpdate"></a>
|
||||
@ -531,9 +498,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$highScore](../constructors/highScore.md) = \['pos' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), \];<a name="highScore"></a>
|
||||
|
||||
***
|
||||
<br><br>[$http\_wait](../constructors/http_wait.md) = \['max_delay' => [int](../types/int.md), 'wait_after' => [int](../types/int.md), 'max_wait' => [int](../types/int.md), \];<a name="http_wait"></a>
|
||||
|
||||
***
|
||||
<br><br>[$importedContact](../constructors/importedContact.md) = \['user_id' => [int](../types/int.md), 'client_id' => [long](../types/long.md), \];<a name="importedContact"></a>
|
||||
|
||||
@ -879,9 +843,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$invoice](../constructors/invoice.md) = \['test' => [Bool](../types/Bool.md), 'name_requested' => [Bool](../types/Bool.md), 'phone_requested' => [Bool](../types/Bool.md), 'email_requested' => [Bool](../types/Bool.md), 'shipping_address_requested' => [Bool](../types/Bool.md), 'flexible' => [Bool](../types/Bool.md), 'phone_to_provider' => [Bool](../types/Bool.md), 'email_to_provider' => [Bool](../types/Bool.md), 'currency' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \];<a name="invoice"></a>
|
||||
|
||||
***
|
||||
<br><br>[$ipPort](../constructors/ipPort.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), \];<a name="ipPort"></a>
|
||||
|
||||
***
|
||||
<br><br>[$keyboardButton](../constructors/keyboardButton.md) = \['text' => [string](../types/string.md), \];<a name="keyboardButton"></a>
|
||||
|
||||
@ -1146,28 +1107,9 @@ description: List of constructors
|
||||
|
||||
[$messages\_stickersNotModified](../constructors/messages_stickersNotModified.md) = \[\];<a name="messages_stickersNotModified"></a>
|
||||
|
||||
***
|
||||
<br><br>[$msg\_detailed\_info](../constructors/msg_detailed_info.md) = \['msg_id' => [long](../types/long.md), 'answer_msg_id' => [long](../types/long.md), 'bytes' => [int](../types/int.md), 'status' => [int](../types/int.md), \];<a name="msg_detailed_info"></a>
|
||||
|
||||
[$msg\_new\_detailed\_info](../constructors/msg_new_detailed_info.md) = \['answer_msg_id' => [long](../types/long.md), 'bytes' => [int](../types/int.md), 'status' => [int](../types/int.md), \];<a name="msg_new_detailed_info"></a>
|
||||
|
||||
[$msg\_resend\_req](../constructors/msg_resend_req.md) = \['msg_ids' => \[[long](../types/long.md)\], \];<a name="msg_resend_req"></a>
|
||||
|
||||
***
|
||||
<br><br>[$msgs\_ack](../constructors/msgs_ack.md) = \['msg_ids' => \[[long](../types/long.md)\], \];<a name="msgs_ack"></a>
|
||||
|
||||
[$msgs\_all\_info](../constructors/msgs_all_info.md) = \['msg_ids' => \[[long](../types/long.md)\], 'info' => [string](../types/string.md), \];<a name="msgs_all_info"></a>
|
||||
|
||||
[$msgs\_state\_info](../constructors/msgs_state_info.md) = \['req_msg_id' => [long](../types/long.md), 'info' => [string](../types/string.md), \];<a name="msgs_state_info"></a>
|
||||
|
||||
[$msgs\_state\_req](../constructors/msgs_state_req.md) = \['msg_ids' => \[[long](../types/long.md)\], \];<a name="msgs_state_req"></a>
|
||||
|
||||
***
|
||||
<br><br>[$nearestDc](../constructors/nearestDc.md) = \['country' => [string](../types/string.md), 'this_dc' => [int](../types/int.md), 'nearest_dc' => [int](../types/int.md), \];<a name="nearestDc"></a>
|
||||
|
||||
***
|
||||
<br><br>[$new\_session\_created](../constructors/new_session_created.md) = \['first_msg_id' => [long](../types/long.md), 'unique_id' => [long](../types/long.md), 'server_salt' => [long](../types/long.md), \];<a name="new_session_created"></a>
|
||||
|
||||
***
|
||||
<br><br>[$notifyAll](../constructors/notifyAll.md) = \[\];<a name="notifyAll"></a>
|
||||
|
||||
@ -1183,9 +1125,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$null](../constructors/null.md) = \[\];<a name="null"></a>
|
||||
|
||||
***
|
||||
<br><br>[$p\_q\_inner\_data](../constructors/p_q_inner_data.md) = \['pq' => [string](../types/string.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce' => [int256](../types/int256.md), \];<a name="p_q_inner_data"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pageBlockAnchor](../constructors/pageBlockAnchor.md) = \['name' => [string](../types/string.md), \];<a name="pageBlockAnchor"></a>
|
||||
|
||||
@ -1368,9 +1307,6 @@ description: List of constructors
|
||||
|
||||
[$photos\_photosSlice](../constructors/photos_photosSlice.md) = \['count' => [int](../types/int.md), 'photos' => \[[Photo](../types/Photo.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="photos_photosSlice"></a>
|
||||
|
||||
***
|
||||
<br><br>[$pong](../constructors/pong.md) = \['msg_id' => [long](../types/long.md), 'ping_id' => [long](../types/long.md), \];<a name="pong"></a>
|
||||
|
||||
***
|
||||
<br><br>[$popularContact](../constructors/popularContact.md) = \['client_id' => [long](../types/long.md), 'importers' => [int](../types/int.md), \];<a name="popularContact"></a>
|
||||
|
||||
@ -1434,18 +1370,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$replyKeyboardMarkup](../constructors/replyKeyboardMarkup.md) = \['resize' => [Bool](../types/Bool.md), 'single_use' => [Bool](../types/Bool.md), 'selective' => [Bool](../types/Bool.md), 'rows' => \[[KeyboardButtonRow](../types/KeyboardButtonRow.md)\], \];<a name="replyKeyboardMarkup"></a>
|
||||
|
||||
***
|
||||
<br><br>[$resPQ](../constructors/resPQ.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'pq' => [string](../types/string.md), 'server_public_key_fingerprints' => \[[long](../types/long.md)\], \];<a name="resPQ"></a>
|
||||
|
||||
***
|
||||
<br><br>[$rpc\_answer\_dropped](../constructors/rpc_answer_dropped.md) = \['msg_id' => [long](../types/long.md), 'seq_no' => [int](../types/int.md), 'bytes' => [int](../types/int.md), \];<a name="rpc_answer_dropped"></a>
|
||||
|
||||
[$rpc\_answer\_dropped\_running](../constructors/rpc_answer_dropped_running.md) = \[\];<a name="rpc_answer_dropped_running"></a>
|
||||
|
||||
[$rpc\_answer\_unknown](../constructors/rpc_answer_unknown.md) = \[\];<a name="rpc_answer_unknown"></a>
|
||||
|
||||
[$rpc\_error](../constructors/rpc_error.md) = \['error_code' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \];<a name="rpc_error"></a>
|
||||
|
||||
***
|
||||
<br><br>[$sendMessageCancelAction](../constructors/sendMessageCancelAction.md) = \[\];<a name="sendMessageCancelAction"></a>
|
||||
|
||||
@ -1485,13 +1409,6 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$sendMessageUploadVideoAction\_17](../constructors/sendMessageUploadVideoAction_17.md) = \[\];<a name="sendMessageUploadVideoAction_17"></a>
|
||||
|
||||
***
|
||||
<br><br>[$server\_DH\_inner\_data](../constructors/server_DH_inner_data.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'g' => [int](../types/int.md), 'dh_prime' => [string](../types/string.md), 'g_a' => [string](../types/string.md), 'server_time' => [int](../types/int.md), \];<a name="server_DH_inner_data"></a>
|
||||
|
||||
[$server\_DH\_params\_fail](../constructors/server_DH_params_fail.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash' => [int128](../types/int128.md), \];<a name="server_DH_params_fail"></a>
|
||||
|
||||
[$server\_DH\_params\_ok](../constructors/server_DH_params_ok.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_answer' => [string](../types/string.md), \];<a name="server_DH_params_ok"></a>
|
||||
|
||||
***
|
||||
<br><br>[$shippingOption](../constructors/shippingOption.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \];<a name="shippingOption"></a>
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
---
|
||||
title: ipPort
|
||||
description: ipPort attributes, type and example
|
||||
---
|
||||
## Constructor: ipPort
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|ipv4|[int](../types/int.md) | Yes|
|
||||
|port|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [IpPort](../types/IpPort.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$ipPort = ['_' => 'ipPort', 'ipv4' => int, 'port' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "ipPort", "ipv4": int, "port": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
ipPort={_='ipPort', ipv4=int, port=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
---
|
||||
title: msg_detailed_info
|
||||
description: msg_detailed_info attributes, type and example
|
||||
---
|
||||
## Constructor: msg\_detailed\_info
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_id|[long](../types/long.md) | Yes|
|
||||
|answer\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|bytes|[int](../types/int.md) | Yes|
|
||||
|status|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgDetailedInfo](../types/MsgDetailedInfo.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msg_detailed_info = ['_' => 'msg_detailed_info', 'msg_id' => long, 'answer_msg_id' => long, 'bytes' => int, 'status' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msg_detailed_info", "msg_id": long, "answer_msg_id": long, "bytes": int, "status": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msg_detailed_info={_='msg_detailed_info', msg_id=long, answer_msg_id=long, bytes=int, status=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: msg_new_detailed_info
|
||||
description: msg_new_detailed_info attributes, type and example
|
||||
---
|
||||
## Constructor: msg\_new\_detailed\_info
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|answer\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|bytes|[int](../types/int.md) | Yes|
|
||||
|status|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgDetailedInfo](../types/MsgDetailedInfo.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msg_new_detailed_info = ['_' => 'msg_new_detailed_info', 'answer_msg_id' => long, 'bytes' => int, 'status' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msg_new_detailed_info", "answer_msg_id": long, "bytes": int, "status": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msg_new_detailed_info={_='msg_new_detailed_info', answer_msg_id=long, bytes=int, status=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
---
|
||||
title: msg_resend_req
|
||||
description: msg_resend_req attributes, type and example
|
||||
---
|
||||
## Constructor: msg\_resend\_req
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_ids|Array of [long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgResendReq](../types/MsgResendReq.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msg_resend_req = ['_' => 'msg_resend_req', 'msg_ids' => [long]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msg_resend_req", "msg_ids": [long]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msg_resend_req={_='msg_resend_req', msg_ids={long}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
---
|
||||
title: msgs_ack
|
||||
description: msgs_ack attributes, type and example
|
||||
---
|
||||
## Constructor: msgs\_ack
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_ids|Array of [long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgsAck](../types/MsgsAck.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msgs_ack = ['_' => 'msgs_ack', 'msg_ids' => [long]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msgs_ack", "msg_ids": [long]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msgs_ack={_='msgs_ack', msg_ids={long}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
---
|
||||
title: msgs_all_info
|
||||
description: msgs_all_info attributes, type and example
|
||||
---
|
||||
## Constructor: msgs\_all\_info
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_ids|Array of [long](../types/long.md) | Yes|
|
||||
|info|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgsAllInfo](../types/MsgsAllInfo.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long], 'info' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msgs_all_info", "msg_ids": [long], "info": "string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msgs_all_info={_='msgs_all_info', msg_ids={long}, info='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
---
|
||||
title: msgs_state_info
|
||||
description: msgs_state_info attributes, type and example
|
||||
---
|
||||
## Constructor: msgs\_state\_info
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|req\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|info|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgsStateInfo](../types/MsgsStateInfo.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msgs_state_info = ['_' => 'msgs_state_info', 'req_msg_id' => long, 'info' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msgs_state_info", "req_msg_id": long, "info": "string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msgs_state_info={_='msgs_state_info', req_msg_id=long, info='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
---
|
||||
title: msgs_state_req
|
||||
description: msgs_state_req attributes, type and example
|
||||
---
|
||||
## Constructor: msgs\_state\_req
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_ids|Array of [long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [MsgsStateReq](../types/MsgsStateReq.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$msgs_state_req = ['_' => 'msgs_state_req', 'msg_ids' => [long]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "msgs_state_req", "msg_ids": [long]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
msgs_state_req={_='msgs_state_req', msg_ids={long}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: new_session_created
|
||||
description: new_session_created attributes, type and example
|
||||
---
|
||||
## Constructor: new\_session\_created
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|first\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|unique\_id|[long](../types/long.md) | Yes|
|
||||
|server\_salt|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [NewSession](../types/NewSession.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$new_session_created = ['_' => 'new_session_created', 'first_msg_id' => long, 'unique_id' => long, 'server_salt' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "new_session_created", "first_msg_id": long, "unique_id": long, "server_salt": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
new_session_created={_='new_session_created', first_msg_id=long, unique_id=long, server_salt=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
---
|
||||
title: p_q_inner_data
|
||||
description: p_q_inner_data attributes, type and example
|
||||
---
|
||||
## Constructor: p\_q\_inner\_data
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|pq|[string](../types/string.md) | Yes|
|
||||
|p|[string](../types/string.md) | Yes|
|
||||
|q|[string](../types/string.md) | Yes|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|new\_nonce|[int256](../types/int256.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [P\_Q\_inner\_data](../types/P_Q_inner_data.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$p_q_inner_data = ['_' => 'p_q_inner_data', 'pq' => 'string', 'p' => 'string', 'q' => 'string', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce' => int256];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "p_q_inner_data", "pq": "string", "p": "string", "q": "string", "nonce": int128, "server_nonce": int128, "new_nonce": int256}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
p_q_inner_data={_='p_q_inner_data', pq='string', p='string', q='string', nonce=int128, server_nonce=int128, new_nonce=int256}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
---
|
||||
title: pong
|
||||
description: pong attributes, type and example
|
||||
---
|
||||
## Constructor: pong
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_id|[long](../types/long.md) | Yes|
|
||||
|ping\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Pong](../types/Pong.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$pong = ['_' => 'pong', 'msg_id' => long, 'ping_id' => long];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "pong", "msg_id": long, "ping_id": long}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
pong={_='pong', msg_id=long, ping_id=long}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
---
|
||||
title: resPQ
|
||||
description: resPQ attributes, type and example
|
||||
---
|
||||
## Constructor: resPQ
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|pq|[string](../types/string.md) | Yes|
|
||||
|server\_public\_key\_fingerprints|Array of [long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [ResPQ](../types/ResPQ.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => 'string', 'server_public_key_fingerprints' => [long]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "resPQ", "nonce": int128, "server_nonce": int128, "pq": "string", "server_public_key_fingerprints": [long]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
resPQ={_='resPQ', nonce=int128, server_nonce=int128, pq='string', server_public_key_fingerprints={long}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: rpc_answer_dropped
|
||||
description: rpc_answer_dropped attributes, type and example
|
||||
---
|
||||
## Constructor: rpc\_answer\_dropped
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|msg\_id|[long](../types/long.md) | Yes|
|
||||
|seq\_no|[int](../types/int.md) | Yes|
|
||||
|bytes|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [RpcDropAnswer](../types/RpcDropAnswer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$rpc_answer_dropped = ['_' => 'rpc_answer_dropped', 'msg_id' => long, 'seq_no' => int, 'bytes' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "rpc_answer_dropped", "msg_id": long, "seq_no": int, "bytes": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
rpc_answer_dropped={_='rpc_answer_dropped', msg_id=long, seq_no=int, bytes=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,37 +0,0 @@
|
||||
---
|
||||
title: rpc_answer_dropped_running
|
||||
description: rpc_answer_dropped_running attributes, type and example
|
||||
---
|
||||
## Constructor: rpc\_answer\_dropped\_running
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [RpcDropAnswer](../types/RpcDropAnswer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$rpc_answer_dropped_running = ['_' => 'rpc_answer_dropped_running'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "rpc_answer_dropped_running"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
rpc_answer_dropped_running={_='rpc_answer_dropped_running'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,37 +0,0 @@
|
||||
---
|
||||
title: rpc_answer_unknown
|
||||
description: rpc_answer_unknown attributes, type and example
|
||||
---
|
||||
## Constructor: rpc\_answer\_unknown
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [RpcDropAnswer](../types/RpcDropAnswer.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$rpc_answer_unknown = ['_' => 'rpc_answer_unknown'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "rpc_answer_unknown"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
rpc_answer_unknown={_='rpc_answer_unknown'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
---
|
||||
title: rpc_error
|
||||
description: rpc_error attributes, type and example
|
||||
---
|
||||
## Constructor: rpc\_error
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|error\_code|[int](../types/int.md) | Yes|
|
||||
|error\_message|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [RpcError](../types/RpcError.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$rpc_error = ['_' => 'rpc_error', 'error_code' => int, 'error_message' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "rpc_error", "error_code": int, "error_message": "string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
rpc_error={_='rpc_error', error_code=int, error_message='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
---
|
||||
title: server_DH_inner_data
|
||||
description: server_DH_inner_data attributes, type and example
|
||||
---
|
||||
## Constructor: server\_DH\_inner\_data
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|g|[int](../types/int.md) | Yes|
|
||||
|dh\_prime|[string](../types/string.md) | Yes|
|
||||
|g\_a|[string](../types/string.md) | Yes|
|
||||
|server\_time|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Server\_DH\_inner\_data](../types/Server_DH_inner_data.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$server_DH_inner_data = ['_' => 'server_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'g' => int, 'dh_prime' => 'string', 'g_a' => 'string', 'server_time' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "server_DH_inner_data", "nonce": int128, "server_nonce": int128, "g": int, "dh_prime": "string", "g_a": "string", "server_time": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
server_DH_inner_data={_='server_DH_inner_data', nonce=int128, server_nonce=int128, g=int, dh_prime='string', g_a='string', server_time=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: server_DH_params_fail
|
||||
description: server_DH_params_fail attributes, type and example
|
||||
---
|
||||
## Constructor: server\_DH\_params\_fail
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|new\_nonce\_hash|[int128](../types/int128.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Server\_DH\_Params](../types/Server_DH_Params.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$server_DH_params_fail = ['_' => 'server_DH_params_fail', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash' => int128];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "server_DH_params_fail", "nonce": int128, "server_nonce": int128, "new_nonce_hash": int128}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
server_DH_params_fail={_='server_DH_params_fail', nonce=int128, server_nonce=int128, new_nonce_hash=int128}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
---
|
||||
title: server_DH_params_ok
|
||||
description: server_DH_params_ok attributes, type and example
|
||||
---
|
||||
## Constructor: server\_DH\_params\_ok
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|encrypted\_answer|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [Server\_DH\_Params](../types/Server_DH_Params.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$server_DH_params_ok = ['_' => 'server_DH_params_ok', 'nonce' => int128, 'server_nonce' => int128, 'encrypted_answer' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "server_DH_params_ok", "nonce": int128, "server_nonce": int128, "encrypted_answer": "string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
server_DH_params_ok={_='server_DH_params_ok', nonce=int128, server_nonce=int128, encrypted_answer='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,80 +0,0 @@
|
||||
---
|
||||
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) | Yes|
|
||||
|name|[string](../types/string.md) | Yes|
|
||||
|phone\_number|[string](../types/string.md) | Yes|
|
||||
|age|[int](../types/int.md) | Yes|
|
||||
|city|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - contest.saveDeveloperInfo
|
||||
* params - `{"vk_id": int, "name": "string", "phone_number": "string", "age": int, "city": "string", }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contest.saveDeveloperInfo`
|
||||
|
||||
Parameters:
|
||||
|
||||
vk_id - Json encoded int
|
||||
|
||||
name - Json encoded string
|
||||
|
||||
phone_number - Json encoded string
|
||||
|
||||
age - Json encoded int
|
||||
|
||||
city - Json encoded string
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
Bool = contest.saveDeveloperInfo({vk_id=int, name='string', phone_number='string', age=int, city='string', })
|
||||
```
|
||||
|
@ -1,61 +0,0 @@
|
||||
---
|
||||
title: destroy_auth_key
|
||||
description: destroy_auth_key parameters, return type and example
|
||||
---
|
||||
## Method: destroy\_auth\_key
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$DestroyAuthKeyRes = $MadelineProto->destroy_auth_key();
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - destroy_auth_key
|
||||
* params - `{}`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/destroy_auth_key`
|
||||
|
||||
Parameters:
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
DestroyAuthKeyRes = destroy_auth_key({})
|
||||
```
|
||||
|
@ -1,68 +0,0 @@
|
||||
---
|
||||
title: destroy_session
|
||||
description: destroy_session parameters, return type and example
|
||||
---
|
||||
## Method: destroy\_session
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|session\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [DestroySessionRes](../types/DestroySessionRes.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - destroy_session
|
||||
* params - `{"session_id": long, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/destroy_session`
|
||||
|
||||
Parameters:
|
||||
|
||||
session_id - Json encoded long
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
DestroySessionRes = destroy_session({session_id=long, })
|
||||
```
|
||||
|
@ -1,68 +0,0 @@
|
||||
---
|
||||
title: get_future_salts
|
||||
description: get_future_salts parameters, return type and example
|
||||
---
|
||||
## Method: get\_future\_salts
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|num|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [FutureSalts](../types/FutureSalts.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - get_future_salts
|
||||
* params - `{"num": int, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/get_future_salts`
|
||||
|
||||
Parameters:
|
||||
|
||||
num - Json encoded int
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
FutureSalts = get_future_salts({num=int, })
|
||||
```
|
||||
|
@ -225,17 +225,6 @@ $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->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md)<a name="destroy_auth_key"></a>
|
||||
|
||||
$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md)<a name="destroy_session"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md)<a name="get_future_salts"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="help_getAppChangelog"></a>
|
||||
|
||||
@ -511,22 +500,6 @@ $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->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md)<a name="ping"></a>
|
||||
|
||||
$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md)<a name="ping_delay_disconnect"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md)<a name="req_DH_params"></a>
|
||||
|
||||
$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md)<a name="req_pq"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md)<a name="rpc_drop_answer"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)<a name="set_client_DH_params"></a>
|
||||
|
||||
***
|
||||
<br><br>$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="stickers_addStickerToSet"></a>
|
||||
|
||||
|
@ -1,68 +0,0 @@
|
||||
---
|
||||
title: ping
|
||||
description: ping parameters, return type and example
|
||||
---
|
||||
## Method: ping
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|ping\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [Pong](../types/Pong.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Pong = $MadelineProto->ping(['ping_id' => long, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - ping
|
||||
* params - `{"ping_id": long, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/ping`
|
||||
|
||||
Parameters:
|
||||
|
||||
ping_id - Json encoded long
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
Pong = ping({ping_id=long, })
|
||||
```
|
||||
|
@ -1,71 +0,0 @@
|
||||
---
|
||||
title: ping_delay_disconnect
|
||||
description: ping_delay_disconnect parameters, return type and example
|
||||
---
|
||||
## Method: ping\_delay\_disconnect
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|ping\_id|[long](../types/long.md) | Yes|
|
||||
|disconnect\_delay|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [Pong](../types/Pong.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - ping_delay_disconnect
|
||||
* params - `{"ping_id": long, "disconnect_delay": int, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/ping_delay_disconnect`
|
||||
|
||||
Parameters:
|
||||
|
||||
ping_id - Json encoded long
|
||||
|
||||
disconnect_delay - Json encoded int
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
Pong = ping_delay_disconnect({ping_id=long, disconnect_delay=int, })
|
||||
```
|
||||
|
@ -1,83 +0,0 @@
|
||||
---
|
||||
title: req_DH_params
|
||||
description: req_DH_params parameters, return type and example
|
||||
---
|
||||
## Method: req\_DH\_params
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|p|[string](../types/string.md) | Yes|
|
||||
|q|[string](../types/string.md) | Yes|
|
||||
|public\_key\_fingerprint|[long](../types/long.md) | Yes|
|
||||
|encrypted\_data|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [Server\_DH\_Params](../types/Server_DH_Params.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - req_DH_params
|
||||
* params - `{"nonce": int128, "server_nonce": int128, "p": "string", "q": "string", "public_key_fingerprint": long, "encrypted_data": "string", }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/req_DH_params`
|
||||
|
||||
Parameters:
|
||||
|
||||
nonce - Json encoded int128
|
||||
|
||||
server_nonce - Json encoded int128
|
||||
|
||||
p - Json encoded string
|
||||
|
||||
q - Json encoded string
|
||||
|
||||
public_key_fingerprint - Json encoded long
|
||||
|
||||
encrypted_data - Json encoded string
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
Server_DH_Params = req_DH_params({nonce=int128, server_nonce=int128, p='string', q='string', public_key_fingerprint=long, encrypted_data='string', })
|
||||
```
|
||||
|
@ -1,68 +0,0 @@
|
||||
---
|
||||
title: req_pq
|
||||
description: req_pq parameters, return type and example
|
||||
---
|
||||
## Method: req\_pq
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [ResPQ](../types/ResPQ.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - req_pq
|
||||
* params - `{"nonce": int128, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/req_pq`
|
||||
|
||||
Parameters:
|
||||
|
||||
nonce - Json encoded int128
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
ResPQ = req_pq({nonce=int128, })
|
||||
```
|
||||
|
@ -1,68 +0,0 @@
|
||||
---
|
||||
title: rpc_drop_answer
|
||||
description: rpc_drop_answer parameters, return type and example
|
||||
---
|
||||
## Method: rpc\_drop\_answer
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|req\_msg\_id|[long](../types/long.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [RpcDropAnswer](../types/RpcDropAnswer.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - rpc_drop_answer
|
||||
* params - `{"req_msg_id": long, }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/rpc_drop_answer`
|
||||
|
||||
Parameters:
|
||||
|
||||
req_msg_id - Json encoded long
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
RpcDropAnswer = rpc_drop_answer({req_msg_id=long, })
|
||||
```
|
||||
|
@ -1,74 +0,0 @@
|
||||
---
|
||||
title: set_client_DH_params
|
||||
description: set_client_DH_params parameters, return type and example
|
||||
---
|
||||
## Method: set\_client\_DH\_params
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|nonce|[int128](../types/int128.md) | Yes|
|
||||
|server\_nonce|[int128](../types/int128.md) | Yes|
|
||||
|encrypted\_data|[string](../types/string.md) | Yes|
|
||||
|
||||
|
||||
### Return type: [Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)
|
||||
|
||||
### Can bots use this method: **YES**
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$MadelineProto->session = 'mySession.madeline';
|
||||
if (isset($token)) { // Login as a bot
|
||||
$MadelineProto->bot_login($token);
|
||||
}
|
||||
if (isset($number)) { // Login as a user
|
||||
$MadelineProto->phone_login($number);
|
||||
$code = readline('Enter the code you received: '); // Or do this in two separate steps in an HTTP API
|
||||
$MadelineProto->complete_phone_login($code);
|
||||
}
|
||||
|
||||
$Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||
|
||||
Parameters:
|
||||
|
||||
* method - set_client_DH_params
|
||||
* params - `{"nonce": int128, "server_nonce": int128, "encrypted_data": "string", }`
|
||||
|
||||
|
||||
|
||||
### As a user:
|
||||
|
||||
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/set_client_DH_params`
|
||||
|
||||
Parameters:
|
||||
|
||||
nonce - Json encoded int128
|
||||
|
||||
server_nonce - Json encoded int128
|
||||
|
||||
encrypted_data - Json encoded string
|
||||
|
||||
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
```
|
||||
Set_client_DH_params_answer = set_client_DH_params({nonce=int128, server_nonce=int128, encrypted_data='string', })
|
||||
```
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
title: BadMsgNotification
|
||||
description: constructors and methods of type BadMsgNotification
|
||||
---
|
||||
## Type: BadMsgNotification
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[bad\_msg\_notification](../constructors/bad_msg_notification.md)
|
||||
|
||||
[bad\_server\_salt](../constructors/bad_server_salt.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: Client_DH_Inner_Data
|
||||
description: constructors and methods of type Client_DH_Inner_Data
|
||||
---
|
||||
## Type: Client\_DH\_Inner\_Data
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[client\_DH\_inner\_data](../constructors/client_DH_inner_data.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
---
|
||||
title: DestroyAuthKeyRes
|
||||
description: constructors and methods of type DestroyAuthKeyRes
|
||||
---
|
||||
## Type: DestroyAuthKeyRes
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[destroy\_auth\_key\_ok](../constructors/destroy_auth_key_ok.md)
|
||||
|
||||
[destroy\_auth\_key\_none](../constructors/destroy_auth_key_none.md)
|
||||
|
||||
[destroy\_auth\_key\_fail](../constructors/destroy_auth_key_fail.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->destroy->auth->key](../methods/destroy_auth_key.md)
|
||||
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
title: DestroySessionRes
|
||||
description: constructors and methods of type DestroySessionRes
|
||||
---
|
||||
## Type: DestroySessionRes
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[destroy\_session\_ok](../constructors/destroy_session_ok.md)
|
||||
|
||||
[destroy\_session\_none](../constructors/destroy_session_none.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->destroy->session](../methods/destroy_session.md)
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: FutureSalt
|
||||
description: constructors and methods of type FutureSalt
|
||||
---
|
||||
## Type: FutureSalt
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[future\_salt](../constructors/future_salt.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
title: FutureSalts
|
||||
description: constructors and methods of type FutureSalts
|
||||
---
|
||||
## Type: FutureSalts
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[future\_salts](../constructors/future_salts.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->get->future->salts](../methods/get_future_salts.md)
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: HttpWait
|
||||
description: constructors and methods of type HttpWait
|
||||
---
|
||||
## Type: HttpWait
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[http\_wait](../constructors/http_wait.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: IpPort
|
||||
description: constructors and methods of type IpPort
|
||||
---
|
||||
## Type: IpPort
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[ipPort](../constructors/ipPort.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
title: MsgDetailedInfo
|
||||
description: constructors and methods of type MsgDetailedInfo
|
||||
---
|
||||
## Type: MsgDetailedInfo
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msg\_detailed\_info](../constructors/msg_detailed_info.md)
|
||||
|
||||
[msg\_new\_detailed\_info](../constructors/msg_new_detailed_info.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: MsgResendReq
|
||||
description: constructors and methods of type MsgResendReq
|
||||
---
|
||||
## Type: MsgResendReq
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msg\_resend\_req](../constructors/msg_resend_req.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: MsgsAck
|
||||
description: constructors and methods of type MsgsAck
|
||||
---
|
||||
## Type: MsgsAck
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msgs\_ack](../constructors/msgs_ack.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: MsgsAllInfo
|
||||
description: constructors and methods of type MsgsAllInfo
|
||||
---
|
||||
## Type: MsgsAllInfo
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msgs\_all\_info](../constructors/msgs_all_info.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: MsgsStateInfo
|
||||
description: constructors and methods of type MsgsStateInfo
|
||||
---
|
||||
## Type: MsgsStateInfo
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msgs\_state\_info](../constructors/msgs_state_info.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: MsgsStateReq
|
||||
description: constructors and methods of type MsgsStateReq
|
||||
---
|
||||
## Type: MsgsStateReq
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[msgs\_state\_req](../constructors/msgs_state_req.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: NewSession
|
||||
description: constructors and methods of type NewSession
|
||||
---
|
||||
## Type: NewSession
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[new\_session\_created](../constructors/new_session_created.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: P_Q_inner_data
|
||||
description: constructors and methods of type P_Q_inner_data
|
||||
---
|
||||
## Type: P\_Q\_inner\_data
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[p\_q\_inner\_data](../constructors/p_q_inner_data.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
title: Pong
|
||||
description: constructors and methods of type Pong
|
||||
---
|
||||
## Type: Pong
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[pong](../constructors/pong.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->ping](../methods/ping.md)
|
||||
|
||||
[$MadelineProto->ping->delay->disconnect](../methods/ping_delay_disconnect.md)
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
title: ResPQ
|
||||
description: constructors and methods of type ResPQ
|
||||
---
|
||||
## Type: ResPQ
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[resPQ](../constructors/resPQ.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->req->pq](../methods/req_pq.md)
|
||||
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
---
|
||||
title: RpcDropAnswer
|
||||
description: constructors and methods of type RpcDropAnswer
|
||||
---
|
||||
## Type: RpcDropAnswer
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[rpc\_answer\_unknown](../constructors/rpc_answer_unknown.md)
|
||||
|
||||
[rpc\_answer\_dropped\_running](../constructors/rpc_answer_dropped_running.md)
|
||||
|
||||
[rpc\_answer\_dropped](../constructors/rpc_answer_dropped.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->rpc->drop->answer](../methods/rpc_drop_answer.md)
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: RpcError
|
||||
description: constructors and methods of type RpcError
|
||||
---
|
||||
## Type: RpcError
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[rpc\_error](../constructors/rpc_error.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
title: Server_DH_Params
|
||||
description: constructors and methods of type Server_DH_Params
|
||||
---
|
||||
## Type: Server\_DH\_Params
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[server\_DH\_params\_fail](../constructors/server_DH_params_fail.md)
|
||||
|
||||
[server\_DH\_params\_ok](../constructors/server_DH_params_ok.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->req->DH->params](../methods/req_DH_params.md)
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: Server_DH_inner_data
|
||||
description: constructors and methods of type Server_DH_inner_data
|
||||
---
|
||||
## Type: Server\_DH\_inner\_data
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[server\_DH\_inner\_data](../constructors/server_DH_inner_data.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
---
|
||||
title: Set_client_DH_params_answer
|
||||
description: constructors and methods of type Set_client_DH_params_answer
|
||||
---
|
||||
## Type: Set\_client\_DH\_params\_answer
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[dh\_gen\_ok](../constructors/dh_gen_ok.md)
|
||||
|
||||
[dh\_gen\_retry](../constructors/dh_gen_retry.md)
|
||||
|
||||
[dh\_gen\_fail](../constructors/dh_gen_fail.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
[$MadelineProto->set->client->DH->params](../methods/set_client_DH_params.md)
|
||||
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
---
|
||||
title: help_ConfigSimple
|
||||
description: constructors and methods of type help_ConfigSimple
|
||||
---
|
||||
## Type: help\_ConfigSimple
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
[help\_configSimple](../constructors/help_configSimple.md)
|
||||
|
||||
|
||||
|
||||
### Methods that return an object of this type (methods):
|
||||
|
||||
|
||||
|
@ -10,8 +10,6 @@ description: List of types
|
||||
|
||||
[Authorization](Authorization.md)<a name="Authorization"></a>
|
||||
|
||||
[BadMsgNotification](BadMsgNotification.md)<a name="BadMsgNotification"></a>
|
||||
|
||||
[Bool](Bool.md)<a name="Bool"></a>
|
||||
|
||||
[BotCommand](BotCommand.md)<a name="BotCommand"></a>
|
||||
@ -56,8 +54,6 @@ description: List of types
|
||||
|
||||
[ChatPhoto](ChatPhoto.md)<a name="ChatPhoto"></a>
|
||||
|
||||
[Client\_DH\_Inner\_Data](Client_DH_Inner_Data.md)<a name="Client_DH_Inner_Data"></a>
|
||||
|
||||
[Config](Config.md)<a name="Config"></a>
|
||||
|
||||
[Contact](Contact.md)<a name="Contact"></a>
|
||||
@ -82,10 +78,6 @@ description: List of types
|
||||
|
||||
[DecryptedMessageMedia](DecryptedMessageMedia.md)<a name="DecryptedMessageMedia"></a>
|
||||
|
||||
[DestroyAuthKeyRes](DestroyAuthKeyRes.md)<a name="DestroyAuthKeyRes"></a>
|
||||
|
||||
[DestroySessionRes](DestroySessionRes.md)<a name="DestroySessionRes"></a>
|
||||
|
||||
[Dialog](Dialog.md)<a name="Dialog"></a>
|
||||
|
||||
[DisabledFeature](DisabledFeature.md)<a name="DisabledFeature"></a>
|
||||
@ -112,18 +104,12 @@ description: List of types
|
||||
|
||||
[FoundGif](FoundGif.md)<a name="FoundGif"></a>
|
||||
|
||||
[FutureSalt](FutureSalt.md)<a name="FutureSalt"></a>
|
||||
|
||||
[FutureSalts](FutureSalts.md)<a name="FutureSalts"></a>
|
||||
|
||||
[Game](Game.md)<a name="Game"></a>
|
||||
|
||||
[GeoPoint](GeoPoint.md)<a name="GeoPoint"></a>
|
||||
|
||||
[HighScore](HighScore.md)<a name="HighScore"></a>
|
||||
|
||||
[HttpWait](HttpWait.md)<a name="HttpWait"></a>
|
||||
|
||||
[ImportedContact](ImportedContact.md)<a name="ImportedContact"></a>
|
||||
|
||||
[InlineBotSwitchPM](InlineBotSwitchPM.md)<a name="InlineBotSwitchPM"></a>
|
||||
@ -194,8 +180,6 @@ description: List of types
|
||||
|
||||
[Invoice](Invoice.md)<a name="Invoice"></a>
|
||||
|
||||
[IpPort](IpPort.md)<a name="IpPort"></a>
|
||||
|
||||
[KeyboardButton](KeyboardButton.md)<a name="KeyboardButton"></a>
|
||||
|
||||
[KeyboardButtonRow](KeyboardButtonRow.md)<a name="KeyboardButtonRow"></a>
|
||||
@ -224,28 +208,12 @@ description: List of types
|
||||
|
||||
[MessagesFilter](MessagesFilter.md)<a name="MessagesFilter"></a>
|
||||
|
||||
[MsgDetailedInfo](MsgDetailedInfo.md)<a name="MsgDetailedInfo"></a>
|
||||
|
||||
[MsgResendReq](MsgResendReq.md)<a name="MsgResendReq"></a>
|
||||
|
||||
[MsgsAck](MsgsAck.md)<a name="MsgsAck"></a>
|
||||
|
||||
[MsgsAllInfo](MsgsAllInfo.md)<a name="MsgsAllInfo"></a>
|
||||
|
||||
[MsgsStateInfo](MsgsStateInfo.md)<a name="MsgsStateInfo"></a>
|
||||
|
||||
[MsgsStateReq](MsgsStateReq.md)<a name="MsgsStateReq"></a>
|
||||
|
||||
[NearestDc](NearestDc.md)<a name="NearestDc"></a>
|
||||
|
||||
[NewSession](NewSession.md)<a name="NewSession"></a>
|
||||
|
||||
[NotifyPeer](NotifyPeer.md)<a name="NotifyPeer"></a>
|
||||
|
||||
[Null](Null.md)<a name="Null"></a>
|
||||
|
||||
[P\_Q\_inner\_data](P_Q_inner_data.md)<a name="P_Q_inner_data"></a>
|
||||
|
||||
[Page](Page.md)<a name="Page"></a>
|
||||
|
||||
[PageBlock](PageBlock.md)<a name="PageBlock"></a>
|
||||
@ -276,8 +244,6 @@ description: List of types
|
||||
|
||||
[PhotoSize](PhotoSize.md)<a name="PhotoSize"></a>
|
||||
|
||||
[Pong](Pong.md)<a name="Pong"></a>
|
||||
|
||||
[PopularContact](PopularContact.md)<a name="PopularContact"></a>
|
||||
|
||||
[PostAddress](PostAddress.md)<a name="PostAddress"></a>
|
||||
@ -294,22 +260,10 @@ description: List of types
|
||||
|
||||
[ReportReason](ReportReason.md)<a name="ReportReason"></a>
|
||||
|
||||
[ResPQ](ResPQ.md)<a name="ResPQ"></a>
|
||||
|
||||
[RichText](RichText.md)<a name="RichText"></a>
|
||||
|
||||
[RpcDropAnswer](RpcDropAnswer.md)<a name="RpcDropAnswer"></a>
|
||||
|
||||
[RpcError](RpcError.md)<a name="RpcError"></a>
|
||||
|
||||
[SendMessageAction](SendMessageAction.md)<a name="SendMessageAction"></a>
|
||||
|
||||
[Server\_DH\_Params](Server_DH_Params.md)<a name="Server_DH_Params"></a>
|
||||
|
||||
[Server\_DH\_inner\_data](Server_DH_inner_data.md)<a name="Server_DH_inner_data"></a>
|
||||
|
||||
[Set\_client\_DH\_params\_answer](Set_client_DH_params_answer.md)<a name="Set_client_DH_params_answer"></a>
|
||||
|
||||
[ShippingOption](ShippingOption.md)<a name="ShippingOption"></a>
|
||||
|
||||
[StickerPack](StickerPack.md)<a name="StickerPack"></a>
|
||||
@ -398,8 +352,6 @@ description: List of types
|
||||
|
||||
[help\_AppUpdate](help_AppUpdate.md)<a name="help_AppUpdate"></a>
|
||||
|
||||
[help\_ConfigSimple](help_ConfigSimple.md)<a name="help_ConfigSimple"></a>
|
||||
|
||||
[help\_InviteText](help_InviteText.md)<a name="help_InviteText"></a>
|
||||
|
||||
[help\_RecentMeUrls](help_RecentMeUrls.md)<a name="help_RecentMeUrls"></a>
|
||||
|
@ -104,12 +104,6 @@ class APIFactory
|
||||
* @var auth
|
||||
*/
|
||||
public $auth;
|
||||
/**
|
||||
* @internal this is a internal property generated by build_docs.php, don't change manually
|
||||
*
|
||||
* @var contest
|
||||
*/
|
||||
public $contest;
|
||||
use Tools;
|
||||
|
||||
public $namespace = '';
|
||||
|
@ -7,22 +7,6 @@
|
||||
|
||||
namespace danog\MadelineProto;
|
||||
|
||||
interface contest
|
||||
{
|
||||
/**
|
||||
* @param array params [
|
||||
* int vk_id,
|
||||
* string name,
|
||||
* string phone_number,
|
||||
* int age,
|
||||
* string city,
|
||||
* ]
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function saveDeveloperInfo(array $params);
|
||||
}
|
||||
|
||||
interface auth
|
||||
{
|
||||
/**
|
||||
|
@ -1,131 +1,3 @@
|
||||
// Core types (no need to gen)
|
||||
|
||||
//vector#1cb5c415 {t:Type} # [ t ] = Vector t;
|
||||
|
||||
///////////////////////////////
|
||||
/////////////////// Layer cons
|
||||
///////////////////////////////
|
||||
|
||||
//invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
|
||||
//invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
|
||||
//invokeWithLayer1#53835315 query:!X = X;
|
||||
//invokeWithLayer2#289dd1f6 query:!X = X;
|
||||
//invokeWithLayer3#b7475268 query:!X = X;
|
||||
//invokeWithLayer4#dea0d430 query:!X = X;
|
||||
//invokeWithLayer5#417a57ae query:!X = X;
|
||||
//invokeWithLayer6#3a64d54d query:!X = X;
|
||||
//invokeWithLayer7#a5be56d3 query:!X = X;
|
||||
//invokeWithLayer8#e9abd9fd query:!X = X;
|
||||
//invokeWithLayer9#76715a63 query:!X = X;
|
||||
//invokeWithLayer10#39620c41 query:!X = X;
|
||||
//invokeWithLayer11#a6b88fdf query:!X = X;
|
||||
//invokeWithLayer12#dda60d3c query:!X = X;
|
||||
//invokeWithLayer13#427c8ea2 query:!X = X;
|
||||
//invokeWithLayer14#2b9b08fa query:!X = X;
|
||||
//invokeWithLayer15#b4418b64 query:!X = X;
|
||||
//invokeWithLayer16#cf5f0987 query:!X = X;
|
||||
//invokeWithLayer17#50858a19 query:!X = X;
|
||||
//invokeWithLayer18#1c900537 query:!X = X;
|
||||
//invokeWithLayer#da9b0d0d layer:int query:!X = X; // after 18 layer
|
||||
|
||||
///////////////////////////////
|
||||
/// Authorization key creation
|
||||
///////////////////////////////
|
||||
|
||||
resPQ#05162463 nonce:int128 server_nonce:int128 pq:string server_public_key_fingerprints:Vector<long> = ResPQ;
|
||||
|
||||
p_q_inner_data#83c95aec pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 = P_Q_inner_data;
|
||||
|
||||
server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params;
|
||||
server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params;
|
||||
|
||||
server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data;
|
||||
|
||||
client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data;
|
||||
|
||||
dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer;
|
||||
dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer;
|
||||
dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer;
|
||||
|
||||
destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes;
|
||||
destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes;
|
||||
destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes;
|
||||
|
||||
---functions---
|
||||
|
||||
req_pq#60469778 nonce:int128 = ResPQ;
|
||||
|
||||
req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;
|
||||
|
||||
set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;
|
||||
|
||||
destroy_auth_key#d1435160 = DestroyAuthKeyRes;
|
||||
|
||||
///////////////////////////////
|
||||
////////////// System messages
|
||||
///////////////////////////////
|
||||
|
||||
---types---
|
||||
|
||||
msgs_ack#62d6b459 msg_ids:Vector<long> = MsgsAck;
|
||||
|
||||
bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification;
|
||||
bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification;
|
||||
|
||||
msgs_state_req#da69fb52 msg_ids:Vector<long> = MsgsStateReq;
|
||||
msgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo;
|
||||
msgs_all_info#8cc0d131 msg_ids:Vector<long> info:string = MsgsAllInfo;
|
||||
|
||||
msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo;
|
||||
msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo;
|
||||
|
||||
msg_resend_req#7d861a08 msg_ids:Vector<long> = MsgResendReq;
|
||||
|
||||
//rpc_result#f35c6d01 req_msg_id:long result:Object = RpcResult; // parsed manually
|
||||
|
||||
rpc_error#2144ca19 error_code:int error_message:string = RpcError;
|
||||
|
||||
rpc_answer_unknown#5e2ad36e = RpcDropAnswer;
|
||||
rpc_answer_dropped_running#cd78e586 = RpcDropAnswer;
|
||||
rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer;
|
||||
|
||||
future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt;
|
||||
future_salts#ae500895 req_msg_id:long now:int salts:vector<future_salt> = FutureSalts;
|
||||
|
||||
pong#347773c5 msg_id:long ping_id:long = Pong;
|
||||
|
||||
destroy_session_ok#e22045fc session_id:long = DestroySessionRes;
|
||||
destroy_session_none#62d350c9 session_id:long = DestroySessionRes;
|
||||
|
||||
new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession;
|
||||
|
||||
//message msg_id:long seqno:int bytes:int body:Object = Message; // parsed manually
|
||||
//msg_container#73f1f8dc messages:vector<message> = MessageContainer; // parsed manually
|
||||
//msg_copy#e06046b2 orig_message:Message = MessageCopy; // parsed manually, not used - use msg_container
|
||||
//gzip_packed#3072cfa1 packed_data:string = Object; // parsed manually
|
||||
|
||||
http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait;
|
||||
|
||||
ipPort ipv4:int port:int = IpPort;
|
||||
help.configSimple#d997c3c5 date:int expires:int dc_id:int ip_port_list:Vector<ipPort> = help.ConfigSimple;
|
||||
|
||||
---functions---
|
||||
|
||||
rpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer;
|
||||
|
||||
get_future_salts#b921bd04 num:int = FutureSalts;
|
||||
|
||||
ping#7abe77ec ping_id:long = Pong;
|
||||
ping_delay_disconnect#f3427b8c ping_id:long disconnect_delay:int = Pong;
|
||||
|
||||
destroy_session#e7512126 session_id:long = DestroySessionRes;
|
||||
|
||||
contest.saveDeveloperInfo#9a5f6e95 vk_id:int name:string phone_number:string age:int city:string = Bool;
|
||||
|
||||
///////////////////////////////
|
||||
///////// Main application API
|
||||
///////////////////////////////
|
||||
|
||||
---types---
|
||||
|
||||
boolFalse#bc799737 = Bool;
|
||||
|
Loading…
Reference in New Issue
Block a user