MadelineProtoDocs/docs/MTProto_docs/constructors/index.md
2018-04-01 13:24:46 +02:00

7.6 KiB

title description
Constructors List of constructors

Constructors

Back to API documentation index




$MTmessage = ['msg_id' => long, 'seqno' => int, 'bytes' => int, 'body' => Object, ];




$bad_msg_notification = ['bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, ];

$bad_server_salt = ['bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long, ];




$bind_auth_key_inner = ['nonce' => long, 'temp_auth_key_id' => long, 'perm_auth_key_id' => long, 'temp_session_id' => long, 'expires_at' => int, ];




$client_DH_inner_data = ['nonce' => int128, 'server_nonce' => int128, 'retry_id' => long, 'g_b' => bytes, ];




$destroy_session_none = ['session_id' => long, ];

$destroy_session_ok = ['session_id' => long, ];




$dh_gen_fail = ['nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash3' => int128, ];

$dh_gen_ok = ['nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash1' => int128, ];

$dh_gen_retry = ['nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash2' => int128, ];




$future_salt = ['valid_since' => int, 'valid_until' => int, 'salt' => long, ];

$future_salts = ['req_msg_id' => long, 'now' => int, 'salts' => [future_salt], ];




$gzip_packed = ['packed_data' => bytes, ];




$msg_container = ['messages' => [MTmessage], ];

$msg_copy = ['orig_message' => MTMessage, ];

$msg_detailed_info = ['msg_id' => long, 'answer_msg_id' => long, 'bytes' => int, 'status' => int, ];

$msg_new_detailed_info = ['answer_msg_id' => long, 'bytes' => int, 'status' => int, ];

$msg_resend_req = ['msg_ids' => [long], ];




$msgs_ack = ['msg_ids' => [long], ];

$msgs_all_info = ['msg_ids' => [long], 'info' => bytes, ];

$msgs_state_info = ['req_msg_id' => long, 'info' => bytes, ];

$msgs_state_req = ['msg_ids' => [long], ];




$new_session_created = ['first_msg_id' => long, 'unique_id' => long, 'server_salt' => long, ];




$p_q_inner_data = ['pq' => bytes, 'p' => bytes, 'q' => bytes, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce' => int256, ];

$p_q_inner_data_temp = ['pq' => bytes, 'p' => bytes, 'q' => bytes, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce' => int256, 'expires_in' => int, ];




$pong = ['msg_id' => long, 'ping_id' => long, ];




$resPQ = ['nonce' => int128, 'server_nonce' => int128, 'pq' => bytes, 'server_public_key_fingerprints' => [long], ];




$rpc_answer_dropped = ['msg_id' => long, 'seq_no' => int, 'bytes' => int, ];

$rpc_answer_dropped_running = [];

$rpc_answer_unknown = [];

$rpc_error = ['error_code' => int, 'error_message' => string, ];

$rpc_result = ['req_msg_id' => long, 'result' => Object, ];




$server_DH_inner_data = ['nonce' => int128, 'server_nonce' => int128, 'g' => int, 'dh_prime' => bytes, 'g_a' => bytes, 'server_time' => int, ];

$server_DH_params_fail = ['nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash' => int128, ];

$server_DH_params_ok = ['nonce' => int128, 'server_nonce' => int128, 'encrypted_answer' => bytes, ];




$vector = [];