PhoneCall

class pyrogram.raw.types.PhoneCall

Phone call

Constructor of PhoneCall.

Details:
  • Layer: 227

  • 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_allowed → true (optional)
├── video → true (optional)
├── conference_supported → true (optional)
├── id → long
├── access_hash → long
├── date → int
├── admin_id → long
├── participant_id → long
├── g_a_or_b → bytes
├── key_fingerprint → long
├── protocol → PhoneCallProtocol
│ └── PhoneCallProtocol
│ ├── udp_p2p → true (optional)
│ ├── udp_reflector → true (optional)
│ ├── min_layer → int
│ ├── max_layer → int
│ └── library_versions → Vector < string >
├── connections → Vector < PhoneConnection >
│ ├── PhoneConnection
│ │ ├── tcp → true (optional)
│ │ ├── id → long
│ │ ├── ip → string
│ │ ├── ipv6 → string
│ │ ├── port → int
│ │ └── peer_tag → bytes
│ └── PhoneConnectionWebrtc
│ ├── turn → true (optional)
│ ├── stun → true (optional)
│ ├── id → long
│ ├── ip → string
│ ├── ipv6 → string
│ ├── port → int
│ ├── username → string
│ └── password → string
├── start_date → int
└── custom_parameters → DataJSON (optional)
└── DataJSON
└── data → string

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