• Type Parameters

    • T extends TlObject
    • K extends
          | "mt_resPQ"
          | "mt_p_q_inner_data_dc"
          | "mt_p_q_inner_data_temp_dc"
          | "mt_server_DH_params_ok"
          | "mt_server_DH_inner_data"
          | "mt_client_DH_inner_data"
          | "mt_dh_gen_ok"
          | "mt_dh_gen_retry"
          | "mt_dh_gen_fail"
          | "mt_bind_auth_key_inner"
          | "mt_rpc_error"
          | "mt_rpc_answer_unknown"
          | "mt_rpc_answer_dropped_running"
          | "mt_rpc_answer_dropped"
          | "mt_future_salt"
          | "mt_future_salts"
          | "mt_pong"
          | "mt_destroy_session_ok"
          | "mt_destroy_session_none"
          | "mt_new_session_created"
          | "mt_msgs_ack"
          | "mt_bad_msg_notification"
          | "mt_bad_server_salt"
          | "mt_msg_resend_req"
          | "mt_msgs_state_req"
          | "mt_msgs_state_info"
          | "mt_msgs_all_info"
          | "mt_msg_detailed_info"
          | "mt_msg_new_detailed_info"
          | "mt_destroy_auth_key_ok"
          | "mt_destroy_auth_key_none"
          | "mt_destroy_auth_key_fail"
          | "mt_http_wait"
          | "mt_req_pq_multi"
          | "mt_req_DH_params"
          | "mt_set_client_DH_params"
          | "mt_rpc_drop_answer"
          | "mt_get_future_salts"
          | "mt_ping"
          | "mt_ping_delay_disconnect"
          | "mt_destroy_session"
          | "mt_destroy_auth_key"

    Parameters

    • context: string
    • obj: T
    • expected: K

    Returns asserts obj is Extract<T, {}>