Layer 220
PhoneCall
Phone call
constructor
phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true conference_supported:flags.8?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector<PhoneConnection> start_date:int custom_parameters:flags.7?DataJSON = PhoneCall;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| P2PAllowed | flags.5?true | Whether P 2 P connection to the other peer is allowed |
| Video | flags.6?true | Whether this is a video call |
| ConferenceSupported | flags.8?true | If set, the other party supports upgrading of the call to a conference call. |
| Id | long | Call ID |
| AccessHash | long | Access hash |
| Date | int | Date of creation of the call |
| AdminId | long | User ID of the creator of the call |
| ParticipantId | long | User ID of the other participant in the call |
| GAOrB | bytes | Parameter for key exchange |
| KeyFingerprint | long | Key fingerprint |
| Protocol | PhoneCallProtocol | Call protocol info to be passed to libtgvoip |
| Connections | Vector<PhoneConnection> | List of endpoints the user can connect to exchange call data |
| StartDate | int | When was the call actually started |
| CustomParameters | flags.7?DataJSON | Custom JSON-encoded call parameters to be passed to tgcalls. |
Returns
PhoneCallGogram Example
// Creating PhoneCall constructor obj := &tg.PhoneCall{ Id: int64(0), AccessHash: int64(0), Date: 0, AdminId: int64(0), ParticipantId: int64(0), GAOrB: []byte{}, // ... more required fields // Optional fields: // P2PAllowed: true, // Video: true, // ConferenceSupported: true, // CustomParameters: &tg.DataJson{}, }