mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +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)
|
return await self.sign_in_bot(value)
|
||||||
else:
|
else:
|
||||||
self.phone_number = value
|
self.phone_number = value
|
||||||
|
if not self.use_qrcode:
|
||||||
sent_code = await self.send_code(self.phone_number)
|
sent_code = await self.send_code(self.phone_number)
|
||||||
except BadRequest as e:
|
except BadRequest as e:
|
||||||
print(e.MESSAGE)
|
print(e.MESSAGE)
|
||||||
|
|
@ -459,7 +459,7 @@ class Client(Methods):
|
||||||
self.bot_token = None
|
self.bot_token = None
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
if not self.use_qrcode:
|
||||||
sent_code_descriptions = {
|
sent_code_descriptions = {
|
||||||
enums.SentCodeType.APP: "Telegram app",
|
enums.SentCodeType.APP: "Telegram app",
|
||||||
enums.SentCodeType.SMS: "SMS",
|
enums.SentCodeType.SMS: "SMS",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue