CodeSettings#

class pyrogram.raw.types.CodeSettings#

Settings used by telegram servers for sending the confirm code. Example implementations: telegram for android, tdlib.

Constructor of CodeSettings.

Details:
  • Layer: 220

  • ID: AD253D78

Parameters:
allow_flashcall (bool, optional):

Whether to allow phone verification via phone calls.

current_number (bool, optional):

Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.

allow_app_hash (bool, optional):

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

allow_missed_call (bool, optional):

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

allow_firebase (bool, optional):

Whether Firebase auth is supported

unknown_number (bool, optional):

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.

logout_tokens (List of bytes, optional):

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

token (str, optional):

Used only by official iOS apps for Firebase auth: device token for apple push.

app_sandbox (bool, optional):

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