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: 223

  • ID: 9CC123C7

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

  • ip (str) – IP address of endpoint

  • ipv6 (str) – IPv6 address of endpoint

  • port (int 32-bit) – Port ID

  • peer_tag (bytes) – Our peer tag

  • tcp (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
├── tcptrue (optional)
├── idlong
├── ipstring
├── ipv6string
├── portint
└── peer_tagbytes

Example

PhoneConnection(
    id=0,
    ip="text",
    ipv6="text",
    port=0,
    peer_tag=b"data",
)