phone.AcceptCall

class pyrogram.raw.functions.phone.AcceptCall

Accept incoming call

Details:
  • Layer: 227

  • 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
├── peer → InputPhoneCall
│ └── InputPhoneCall
│ ├── id → long
│ └── access_hash → long
├── g_b → bytes
└── protocol → PhoneCallProtocol
├── udp_p2p → true (optional)
├── udp_reflector → true (optional)
├── min_layer → int
├── max_layer → int
└── library_versions → Vector < 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"]
        ),
    )
)