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 undefinedWhether to allow phone verification via phone calls.
currentNumber
: boolean or undefinedPass true if the phone number is used on the current device. ignored if allowFlashcall is not set.
allowAppHash
: boolean or undefinedIf 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 undefinedWhether this device supports receiving the code using the auth.codetypemissedcall method
allowFirebase
: boolean or undefinedWhether firebase auth is supported
unknownNumber
: boolean or undefinedSet 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 undefinedPreviously stored future auth tokens, see the documentation for more info
token
: string or undefinedUsed only by official ios apps for firebase auth: device token for apple push.
appSandbox
: boolean or undefinedUsed only by official ios apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.