PhoneCall
- class pyrogram.raw.types.PhoneCall
Phone call
Constructor of
PhoneCall.- Details:
Layer:
223ID:
30535AF5
- Parameters:
id (
int64-bit) – Call IDaccess_hash (
int64-bit) – Access hashdate (
int32-bit) – Date of creation of the calladmin_id (
int64-bit) – User ID of the creator of the callparticipant_id (
int64-bit) – User ID of the other participant in the callg_a_or_b (
bytes) – Parameter for key exchangekey_fingerprint (
int64-bit) – Key fingerprintprotocol (
PhoneCallProtocol) – Call protocol info to be passed to libtgvoipconnections (List of
PhoneConnection) – List of endpoints the user can connect to exchange call datastart_date (
int32-bit) – When was the call actually startedp2p_allowed (
bool, optional) – Whether P2P connection to the other peer is allowedvideo (
bool, optional) – Whether this is a video callconference_supported (
bool, optional) – If set, the other party supports upgrading of the call to a conference call.custom_parameters (
DataJSON, optional) – Custom JSON-encoded call parameters to be passed to tgcalls.
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)longlongintlonglongbyteslongPhoneCallProtocolPhoneCallProtocoltrue (optional)true (optional)intintVector < string >Vector < PhoneConnection >PhoneConnectiontrue (optional)longstringstringintbytesPhoneConnectionWebrtctrue (optional)true (optional)longstringstringintstringstringintDataJSON (optional)DataJSONstringExample
PhoneCall(
id=0,
access_hash=0,
date=0,
admin_id=0,
participant_id=0,
g_a_or_b=b"data",
key_fingerprint=0,
protocol=PhoneCallProtocol(
min_layer=0,
max_layer=0,
library_versions=["text"]
),
connections=[
PhoneConnection(
id=0,
ip="text",
ipv6="text",
port=0,
peer_tag=b"data"
)
],
start_date=0,
)