PhoneCallProtocol

class pyrogram.raw.types.PhoneCallProtocol

Protocol info for libtgvoip.

Constructor type of PhoneCallProtocol.

Details
  • Layer: 126

  • ID: 0xfc878fc8

Parameters
  • min_layer (int 32-bit) – Minimum layer for remote libtgvoip.

  • max_layer (int 32-bit) – Maximum layer for remote libtgvoip.

  • library_versions (List of str) – When using phone.requestCall and phone.acceptCall, specify all library versions supported by the client. The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee’s phone.acceptCall and in the phoneCallAccepted update received by the caller.

  • udp_p2p (bool, optional) – Whether to allow P2P connection to the other participant.

  • udp_reflector (bool, optional) – Whether to allow connection to the other participants through the reflector servers.