phone.AcceptCall

class pyrogram.raw.functions.phone.AcceptCall

Accept incoming call

Details:
  • Layer: 223

  • ID: 3BD2B4A0

Parameters:
  • peer (InputPhoneCall) – The call to accept

  • g_b (bytes) – Parameter for E2E encryption key exchange »

  • protocol (PhoneCallProtocol) – Phone call settings

Returns:

phone.PhoneCall

TL Schema

phone.acceptCall#3bd2b4a0
peer:InputPhoneCall
g_b:bytes
protocol:PhoneCallProtocol

= phone.PhoneCall

Parameter Tree

AcceptCall
├── peerInputPhoneCall
│ └── InputPhoneCall
│ ├── idlong
│ └── access_hashlong
├── g_bbytes
└── protocolPhoneCallProtocol
├── udp_p2ptrue (optional)
├── udp_reflectortrue (optional)
├── min_layerint
├── max_layerint
└── library_versionsVector < string >

Example

await app.invoke(
    AcceptCall(
        peer=InputPhoneCall(
            id=0,
            access_hash=0
        ),
        g_b=b"data",
        protocol=PhoneCallProtocol(
            udp_p2p=None,
            udp_reflector=None,
            min_layer=0,
            max_layer=0,
            library_versions=["text"]
        ),
    )
)