Raw.CodeSettings

Raw.CodeSettings

Settings used by telegram servers for sending the confirm code.

codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true unknown_number:flags.9?true logout_tokens:flags.6?Vector<bytes> token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings;
export namespace Raw {
  export class CodeSettings {
    constructor(params: {
      allowFlashcall?: boolean;
      currentNumber?: boolean;
      allowAppHash?: boolean;
      allowMissedCall?: boolean;
      allowFirebase?: boolean;
      unknownNumber?: boolean;
      logoutTokens?: Array<Buffer>;
      token?: string;
      appSandbox?: boolean;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xad253d78

Property

  • allowFlashcall : boolean or undefined

    Whether to allow phone verification via phone calls.

  • currentNumber : boolean or undefined

    Pass true if the phone number is used on the current device. ignored if allowFlashcall is not set.

  • allowAppHash : boolean or undefined

    If a token that will be included in eventually sent smss is required: required in newer versions of android, to use the android sms receiver apis

  • allowMissedCall : boolean or undefined

    Whether this device supports receiving the code using the auth.codetypemissedcall method

  • allowFirebase : boolean or undefined

    Whether firebase auth is supported

  • unknownNumber : boolean or undefined

    Set this flag if there is a sim card in the current device, but it is not possible to check whether the specified phone number matches the sim’s phone number.

  • logoutTokens : Array of Buffer or undefined

    Previously stored future auth tokens, see the documentation for more info

  • token : string or undefined

    Used only by official ios apps for firebase auth: device token for apple push.

  • appSandbox : boolean or undefined

    Used only by official ios apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.