PhoneConnectionWebrtc
- class pyrogram.raw.types.PhoneConnectionWebrtc
WebRTC connection parameters
Constructor of
PhoneConnection.- Details:
Layer:
223ID:
635FE375
- Parameters:
id (
int64-bit) – Endpoint IDip (
str) – IP addressipv6 (
str) – IPv6 addressport (
int32-bit) – Portusername (
str) – Usernamepassword (
str) – Passwordturn (
bool, optional) – Whether this is a TURN endpointstun (
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
├── turn →
true (optional)├── stun →
true (optional)├── id →
long├── ip →
string├── ipv6 →
string├── port →
int├── username →
string└── password →
stringExample
PhoneConnectionWebrtc(
id=0,
ip="text",
ipv6="text",
port=0,
username="text",
password="text",
)