mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: client: fix looping prompt when use qrcode as input
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
d66907159f
commit
7ada139ee3
1 changed files with 12 additions and 12 deletions
|
|
@ -451,7 +451,7 @@ class Client(Methods):
|
|||
return await self.sign_in_bot(value)
|
||||
else:
|
||||
self.phone_number = value
|
||||
|
||||
if not self.use_qrcode:
|
||||
sent_code = await self.send_code(self.phone_number)
|
||||
except BadRequest as e:
|
||||
print(e.MESSAGE)
|
||||
|
|
@ -459,7 +459,7 @@ class Client(Methods):
|
|||
self.bot_token = None
|
||||
else:
|
||||
break
|
||||
|
||||
if not self.use_qrcode:
|
||||
sent_code_descriptions = {
|
||||
enums.SentCodeType.APP: "Telegram app",
|
||||
enums.SentCodeType.SMS: "SMS",
|
||||
|
|
|
|||
Loading…
Reference in a new issue