MadelineProto/docs/MTProto_docs/methods/index.md
Daniil Gentili e4a326e552
Http refactor (#307)
* refactor

* Apply fixes from StyleCI

* Implement https and http transport, add support for new req_pq_multi, send pending acks and objects in containers along with the next method call, remove dependency on the socket extension.

* Apply fixes from StyleCI

* Make types with empty constructors optional, fix phar archives (fixes #217)

* Apply fixes from StyleCI

* Update to layer 75

* Update github pages gemfile.lock
2018-02-18 14:18:18 +01:00

3.1 KiB

title description
Methods List of methods

Methods

Back to API documentation index

$MadelineProto->logout();

$MadelineProto->phone_login($number);

$MadelineProto->complete_phone_login($code);

$MadelineProto->complete_2FA_login($password);

$MadelineProto->bot_login($token);

$MadelineProto->get_dialogs();

$MadelineProto->get_pwr_chat($id);

$MadelineProto->get_info($id);

$MadelineProto->get_full_info($id);

$MadelineProto->get_self();




$MadelineProto->destroy_session(['session_id' => long, ]) === $DestroySessionRes




$MadelineProto->get_future_salts(['num' => int, ]) === $FutureSalts




$MadelineProto->http_wait(['max_delay' => int, 'wait_after' => int, 'max_wait' => int, ]) === $HttpWait




$MadelineProto->ping(['ping_id' => long, ]) === $Pong

$MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]) === $Pong




$MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => bytes, 'q' => bytes, 'public_key_fingerprint' => long, 'encrypted_data' => bytes, ]) === $Server_DH_Params

$MadelineProto->req_pq(['nonce' => int128, ]) === $ResPQ

$MadelineProto->req_pq_multi(['nonce' => int128, ]) === $ResPQ




$MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]) === $RpcDropAnswer




$MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => bytes, ]) === $Set_client_DH_params_answer