PhoneCall

class pyrogram.raw.base.PhoneCall

Phone call

Constructors:

This base type has 6 constructors available.

PhoneCall

Phone call

PhoneCallAccepted

An accepted phone call

PhoneCallDiscarded

Indicates a discarded phone call

PhoneCallEmpty

Empty constructor

PhoneCallRequested

Requested phone call

PhoneCallWaiting

Incoming phone call

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(
    p2p_allowed=None,
    video=None,
    conference_supported=None,
    id=0,
    access_hash=0,
    date=0,
    admin_id=0,
    participant_id=0,
    g_a_or_b=b"data",
    key_fingerprint=0,
    protocol=PhoneCallProtocol(
        udp_p2p=None,
        udp_reflector=None,
        min_layer=0,
        max_layer=0,
        library_versions=["text"]
    ),
    connections=[
            PhoneConnection(
                tcp=None,
                id=0,
                ip="text",
                ipv6="text",
                port=0,
                peer_tag=b"data"
            )
        ],
    start_date=0,
    custom_parameters=DataJSON(data="text"),
)