PhoneCall

class pyrogram.raw.types.PhoneCall

Phone call

Constructor of PhoneCall.

Details:
  • Layer: 223

  • ID: 30535AF5

Parameters:
  • id (int 64-bit) – Call ID

  • access_hash (int 64-bit) – Access hash

  • date (int 32-bit) – Date of creation of the call

  • admin_id (int 64-bit) – User ID of the creator of the call

  • participant_id (int 64-bit) – User ID of the other participant in the call

  • g_a_or_b (bytes) – Parameter for key exchange

  • key_fingerprint (int 64-bit) – Key fingerprint

  • protocol (PhoneCallProtocol) – Call protocol info to be passed to libtgvoip

  • connections (List of PhoneConnection) – List of endpoints the user can connect to exchange call data

  • start_date (int 32-bit) – When was the call actually started

  • 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.

  • 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

PhoneCall
├── p2p_allowedtrue (optional)
├── videotrue (optional)
├── conference_supportedtrue (optional)
├── idlong
├── access_hashlong
├── dateint
├── admin_idlong
├── participant_idlong
├── g_a_or_bbytes
├── key_fingerprintlong
├── protocolPhoneCallProtocol
│ └── PhoneCallProtocol
│ ├── udp_p2ptrue (optional)
│ ├── udp_reflectortrue (optional)
│ ├── min_layerint
│ ├── max_layerint
│ └── library_versionsVector < string >
├── connectionsVector < PhoneConnection >
│ ├── PhoneConnection
│ │ ├── tcptrue (optional)
│ │ ├── idlong
│ │ ├── ipstring
│ │ ├── ipv6string
│ │ ├── portint
│ │ └── peer_tagbytes
│ └── PhoneConnectionWebrtc
│ ├── turntrue (optional)
│ ├── stuntrue (optional)
│ ├── idlong
│ ├── ipstring
│ ├── ipv6string
│ ├── portint
│ ├── usernamestring
│ └── passwordstring
├── start_dateint
└── custom_parametersDataJSON (optional)
└── DataJSON
└── datastring

Example

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,
)