Raw.PhoneCall

Raw.PhoneCall

Phone call

phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector<PhoneConnection> start_date:int custom_parameters:flags.7?DataJSON = PhoneCall;
export namespace Raw {
  export class PhoneCall {
    constructor(params: {
      p2pAllowed?: boolean;
      video?: boolean;
      id: bigint;
      accessHash: bigint;
      date: number;
      adminId: bigint;
      participantId: bigint;
      gAOrB: Buffer;
      keyFingerprint: bigint;
      protocol: Raw.TypePhoneCallProtocol;
      connections: Array<Raw.TypePhoneConnection>;
      startDate: number;
      customParameters?: Raw.TypeDataJSON;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x30535af5

Property

  • p2pAllowed : boolean or undefined

    Whether p2p connection to the other peer is allowed

  • video : boolean or undefined

    Whether this is a video call

  • id : bigint

    Call id

  • accessHash : bigint

    Access hash

  • date : number

    Date of creation of the call

  • adminId : bigint

    User id of the creator of the call

  • participantId : bigint

    User id of the other participant in the call

  • gAOrB : Buffer

    Parameter for key exchange

  • keyFingerprint : bigint

    Key fingerprint

  • protocol : Raw.TypePhoneCallProtocol

    Call protocol info to be passed to libtgvoip

  • connections : Array of Raw.TypePhoneConnection

    List of endpoints the user can connect to exchange call data

  • startDate : number

    When was the call actually started

  • customParameters : Raw.TypeDataJSON or undefined

    Custom json-encoded call parameters to be passed to tgcalls.