mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +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.APP: "Telegram app",
|
||||||
enums.SentCodeType.SMS: "SMS",
|
enums.SentCodeType.SMS: "SMS",
|
||||||
enums.SentCodeType.CALL: "phone call",
|
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]}")
|
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
|
SMS = raw.types.auth.CodeTypeSms
|
||||||
"The code was sent via SMS."
|
"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
|
SMS = raw.types.auth.SentCodeTypeSms
|
||||||
"The code was sent via SMS."
|
"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