Constructor: phoneCall
Phone call
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| p2p_allowed | Bool | Optional | Whether P2P connection to the other peer is allowed |
| video | Bool | Optional | Whether this is a video call |
| conference_supported | Bool | Optional | If set, the other party supports upgrading of the call to a conference call. |
| id | long | Yes | Call ID |
| access_hash | long | Yes | Access hash |
| date | int | Yes | Date of creation of the call |
| admin_id | long | Yes | User ID of the creator of the call |
| participant_id | long | Yes | User ID of the other participant in the call |
| g_a_or_b | bytes | Yes | Parameter for key exchange |
| key_fingerprint | long | Yes | Key fingerprint |
| protocol | PhoneCallProtocol | Yes | Call protocol info to be passed to libtgvoip |
| connections | Array of PhoneConnection | Yes | List of endpoints the user can connect to exchange call data |
| start_date | int | Yes | When was the call actually started |
| custom_parameters | DataJSON | Optional | Custom JSON-encoded call parameters to be passed to tgcalls. |
Type: PhoneCall
Example:
$phoneCall = ['_' => 'phoneCall', 'p2p_allowed' => Bool, 'video' => Bool, 'conference_supported' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => long, 'participant_id' => long, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connections' => [PhoneConnection, PhoneConnection], 'start_date' => int, 'custom_parameters' => DataJSON];