MadelineProtoDocs/docs/MTProto_docs/constructors/index.md
2020-06-16 17:50:25 +02:00

9.1 KiB

title description image
Constructors List of constructors https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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' => string, ];




$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, ];




$http_wait = ['max_delay' => int, 'wait_after' => int, 'max_wait' => int, ];




$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_ans_req = ['msg_ids' => [long], ];

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




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

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

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

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




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




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

$p_q_inner_data_dc = ['pq' => string, 'p' => string, 'q' => string, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce' => int256, 'dc' => int, ];

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

$p_q_inner_data_temp_dc = ['pq' => string, 'p' => string, 'q' => string, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce' => int256, 'dc' => int, 'expires_in' => int, ];




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




$resPQ = ['nonce' => int128, 'server_nonce' => int128, 'pq' => string, '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, ];




$rsa_public_key = ['n' => string, 'e' => string, ];




$server_DH_inner_data = ['nonce' => int128, 'server_nonce' => int128, 'g' => int, 'dh_prime' => string, 'g_a' => string, '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' => string, ];




$vector = [];