diff --git a/pyrogram/client.py b/pyrogram/client.py index 52c1d844..238b2efb 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -356,7 +356,8 @@ class Client(Methods): enums.SentCodeType.APP: "Telegram app", enums.SentCodeType.SMS: "SMS", enums.SentCodeType.CALL: "phone call", - enums.SentCodeType.FLASH_CALL: "phone flash call" + enums.SentCodeType.FLASH_CALL: "phone flash call", + enums.SentCodeType.FRAGMENT_SMS: "Fragment SMS", } print(f"The confirmation code has been sent via {sent_code_descriptions[sent_code.type]}") diff --git a/pyrogram/enums/next_code_type.py b/pyrogram/enums/next_code_type.py index eadaf191..7b3137a7 100644 --- a/pyrogram/enums/next_code_type.py +++ b/pyrogram/enums/next_code_type.py @@ -34,3 +34,6 @@ class NextCodeType(AutoName): SMS = raw.types.auth.CodeTypeSms "The code was sent via SMS." + + FRAGMENT_SMS = raw.types.auth.CodeTypeFragmentSms + "The code was sent via Fragment SMS." diff --git a/pyrogram/enums/sent_code_type.py b/pyrogram/enums/sent_code_type.py index bee9de3f..e3ec6112 100644 --- a/pyrogram/enums/sent_code_type.py +++ b/pyrogram/enums/sent_code_type.py @@ -37,3 +37,6 @@ class SentCodeType(AutoName): SMS = raw.types.auth.SentCodeTypeSms "The code was sent via SMS." + + FRAGMENT_SMS = raw.types.auth.SentCodeTypeFragmentSms + "The code was sent via Fragment SMS."