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