mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Add support for Fragment SMS codes (#1170)
This commit is contained in:
parent
8afd4597fa
commit
c4a47b99ae
@ -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]}")
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user