PhoneConnectionWebrtc

class pyrogram.raw.types.PhoneConnectionWebrtc

WebRTC connection parameters

Constructor of PhoneConnection.

Details:
  • Layer: 223

  • ID: 635FE375

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

  • ip (str) – IP address

  • ipv6 (str) – IPv6 address

  • port (int 32-bit) – Port

  • username (str) – Username

  • password (str) – Password

  • turn (bool, optional) – Whether this is a TURN endpoint

  • stun (bool, optional) – Whether this is a STUN endpoint

TL Schema

phoneConnectionWebrtc#635fe375
flags:#
turn:flags.0?true
stun:flags.1?true
id:long
ip:string
ipv6:string
port:int
username:string
password:string

= PhoneConnection

Parameter Tree

PhoneConnectionWebrtc
├── turntrue (optional)
├── stuntrue (optional)
├── idlong
├── ipstring
├── ipv6string
├── portint
├── usernamestring
└── passwordstring

Example

PhoneConnectionWebrtc(
    id=0,
    ip="text",
    ipv6="text",
    port=0,
    username="text",
    password="text",
)