0
c = Client(f"sessions/{added[2]}", api_id=added[0], api_hash=added[1])
await c.connect()
result = SendCode(phone_number=added[2])
if result:
phoneCode = await query.message.chat.ask(text="Enter code")
await c.sign_in(added[2],result.phone_code_hash, phoneCode)

I tried to get it from the user like this but I can't and I get strange errors

Please tell me if my method is correct or not or suggest me another method

CallMeStag
  • 5,467
  • 1
  • 7
  • 22
amir
  • 1
  • 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 05 '23 at 01:32

0 Answers0