CodeSettings

class pyrogram.raw.base.CodeSettings

Settings for the code type to send

Constructors:

This base type has 1 constructor available.

CodeSettings

Settings used by telegram servers for sending the confirm code.

TL Schema

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

Parameter Tree

CodeSettings
├── allow_flashcalltrue (optional)
├── current_numbertrue (optional)
├── allow_app_hashtrue (optional)
├── allow_missed_calltrue (optional)
├── allow_firebasetrue (optional)
├── unknown_numbertrue (optional)
├── logout_tokensVector < bytes > (optional)
├── tokenstring (optional)
└── app_sandboxBool (optional)

Example

CodeSettings(
    allow_flashcall=None,
    current_number=None,
    allow_app_hash=None,
    allow_missed_call=None,
    allow_firebase=None,
    unknown_number=None,
    logout_tokens=[b"data"],
    token="text",
    app_sandbox=None,
)