pyrofork: client: fix looping prompt when use qrcode as input

Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
wulan17 2025-07-09 21:39:46 +07:00
parent d66907159f
commit 7ada139ee3
No known key found for this signature in database
GPG key ID: 737814D4B5FF0420

View file

@ -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",