2017-01-02 19:50:37 +01:00
|
|
|
---
|
|
|
|
title: Methods
|
|
|
|
description: List of methods
|
|
|
|
---
|
|
|
|
# Methods
|
|
|
|
[Back to API documentation index](..)
|
|
|
|
|
|
|
|
|
2017-08-25 14:29:02 +02:00
|
|
|
$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)();
|
|
|
|
|
|
|
|
$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number);
|
|
|
|
|
|
|
|
$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code);
|
|
|
|
|
2017-08-25 14:32:11 +02:00
|
|
|
$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password);
|
2017-08-25 14:29:02 +02:00
|
|
|
|
2017-11-03 13:02:01 +01:00
|
|
|
$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token);
|
2017-08-25 14:29:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)();
|
|
|
|
|
|
|
|
$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id);
|
|
|
|
|
|
|
|
$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id);
|
|
|
|
|
|
|
|
$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id);
|
|
|
|
|
|
|
|
$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)();
|
|
|
|
|
2017-01-02 19:50:37 +01:00
|
|
|
|
Documentation rework (#349)
* Documentation rework
* Apply fixes from StyleCI
* Documentation fixes
* Login as bot through web/cli API, allow using invite links in joinChannel, full invite links in importChatInvite and checkChatInvite, non-invite links in importChatInvite
* Apply fixes from StyleCI
* Logging fixes
* Build docs
* Add methods to modify start template, bugfix to logging and keyboard conversion
* Add TL documentator
* Document MTProto methods
* Documenting methods...
* 7% documented
* Bugfixes
* Update docs
* Update docs
* Simplify file management
* Implement automatic object conversion for media, and more awesome stuff
* Implement automatic object conversion for media, and more awesome stuff
* Implement event update handler and file upload/download callback
* Auto-detect mime type, duration, width and height of media
* Update docs
* Document new file functions
* Fix links
* Fix links
* Update bot.php to use event loop
* Implement webhook update handler and forking in main loop
* Build docs
* Better docs
* Fixes to secret chats
* Almost finished updating docs
* Bugfixes, implemented infinite loop for loop() method, almost finished docs
* Finish writing docs
* Add automatic documentation builder script
* Finished writing docs
2018-03-20 12:48:05 +01:00
|
|
|
$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id);
|
|
|
|
|
|
|
|
$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id);
|
|
|
|
|
2017-01-02 19:50:37 +01:00
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md)<a name="destroy_session"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<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>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[http_wait](http_wait.md)(\['max_delay' => [int](../types/int.md), 'wait_after' => [int](../types/int.md), 'max_wait' => [int](../types/int.md), \]) === [$HttpWait](../types/HttpWait.md)<a name="http_wait"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md)<a name="ping"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$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>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [bytes](../types/bytes.md), 'q' => [bytes](../types/bytes.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md)<a name="req_DH_params"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md)<a name="req_pq"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2018-02-18 14:18:18 +01:00
|
|
|
$MadelineProto->[req_pq_multi](req_pq_multi.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md)<a name="req_pq_multi"></a>
|
|
|
|
|
2017-01-02 19:50:37 +01:00
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<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>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<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' => [bytes](../types/bytes.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)<a name="set_client_DH_params"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|