- request = tp_asv_new (
- TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
- TP_IFACE_CHANNEL_TYPE_TEXT,
- TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, target_handle_type,
- TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING, target_id,
- NULL);
+ req = tp_account_channel_request_new_text (account, timestamp);
+ tp_account_channel_request_set_target_id (req, target_handle_type, target_id);
+ tp_account_channel_request_set_delegate_to_preferred_handler (req, TRUE);