PhoneConnection
- class pyrogram.raw.types.PhoneConnection
Identifies an endpoint that can be used to connect to the other user in a phone call
Constructor of
PhoneConnection.- Details:
Layer:
223ID:
9CC123C7
- Parameters:
id (
int64-bit) – Endpoint IDip (
str) – IP address of endpointipv6 (
str) – IPv6 address of endpointport (
int32-bit) – Port IDpeer_tag (
bytes) – Our peer tagtcp (
bool, optional) – Whether TCP should be used
TL Schema
phoneConnection#9cc123c7
flags:#
tcp:flags.0?true
id:long
ip:string
ipv6:string
port:int
peer_tag:bytes
= PhoneConnection
Parameter Tree
PhoneConnection
├── tcp →
true (optional)├── id →
long├── ip →
string├── ipv6 →
string├── port →
int└── peer_tag →
bytesExample
PhoneConnection(
id=0,
ip="text",
ipv6="text",
port=0,
peer_tag=b"data",
)