@@ -272,7 +272,7 @@ def __init__(
272
272
storage_engine : Storage = None ,
273
273
no_joined_notifications : bool = False ,
274
274
client_platform : enums .ClientPlatform = enums .ClientPlatform .OTHER ,
275
- _un_docu_gnihts : List = None
275
+ _un_docu_gnihts : List = []
276
276
):
277
277
super ().__init__ ()
278
278
@@ -308,7 +308,7 @@ def __init__(
308
308
self .max_business_user_connection_cache_size = max_business_user_connection_cache_size
309
309
self .no_joined_notifications = no_joined_notifications
310
310
self .client_platform = client_platform
311
- self ._un_docu_gnihts = []
311
+ self ._un_docu_gnihts = _un_docu_gnihts
312
312
313
313
self .executor = ThreadPoolExecutor (self .workers , thread_name_prefix = "Handler" )
314
314
@@ -424,11 +424,14 @@ async def authorize(self) -> User:
424
424
425
425
sent_code_descriptions = {
426
426
enums .SentCodeType .APP : "Telegram app" ,
427
- enums .SentCodeType .SMS : "SMS" ,
428
427
enums .SentCodeType .CALL : "phone call" ,
429
428
enums .SentCodeType .FLASH_CALL : "phone flash call" ,
429
+ enums .SentCodeType .MISSED_CALL : "" ,
430
+ enums .SentCodeType .SMS : "SMS" ,
430
431
enums .SentCodeType .FRAGMENT_SMS : "Fragment SMS" ,
431
- enums .SentCodeType .EMAIL_CODE : "email code"
432
+ enums .SentCodeType .FIREBASE_SMS : "SMS after Firebase attestation" ,
433
+ enums .SentCodeType .EMAIL_CODE : "email" ,
434
+ enums .SentCodeType .SETUP_EMAIL_REQUIRED : "add and verify email required" ,
432
435
}
433
436
434
437
print (f"The confirmation code has been sent via { sent_code_descriptions [sent_code .type ]} " )
0 commit comments