Link Search Menu Expand Document

Constructor: phoneCall

Back to constructors index

Phone call

Attributes:

NameTypeRequiredDescription
p2p_allowedBoolOptionalWhether P2P connection to the other peer is allowed
videoBoolOptionalWhether this is a video call
idlongYesCall ID
access_hashlongYesAccess hash
dateintYesDate of creation of the call
admin_idlongYesUser ID of the creator of the call
participant_idlongYesUser ID of the other participant in the call
g_a_or_bbytesYesParameter for key exchange
key_fingerprintlongYesKey fingerprint
protocolPhoneCallProtocolYesCall protocol info to be passed to libtgvoip
connectionsArray of PhoneConnectionYesList of endpoints the user can connect to to exchange call data
start_dateintYesWhen was the call actually started
custom_parametersDataJSONOptional

Type: PhoneCall

Example:

$phoneCall = ['_' => 'phoneCall', 'p2p_allowed' => Bool, 'video' => 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];