MadelineProtoDocs/old_docs/API_docs_v25/constructors/phoneCall.md
2020-06-16 17:50:25 +02:00

1.9 KiB

title description image
phoneCall Phone call https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneCall

Back to constructors index

Phone call

Attributes:

Name Type Required Description
id long Yes Call ID
access_hash long Yes Access hash
date int Yes Date of creation of the call
admin_id int Yes User ID of the creator of the call
participant_id int 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
connection PhoneConnection Yes
alternative_connections Array of PhoneConnection Yes
start_date int Yes When was the call actually started

Type: PhoneCall

Example:

$phoneCall = ['_' => 'phoneCall', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connection' => PhoneConnection, 'alternative_connections' => [PhoneConnection, PhoneConnection], 'start_date' => int];

Or, if you're into Lua:

phoneCall={_='phoneCall', id=long, access_hash=long, date=int, admin_id=int, participant_id=int, g_a_or_b='bytes', key_fingerprint=long, protocol=PhoneCallProtocol, connection=PhoneConnection, alternative_connections={PhoneConnection}, start_date=int}