tg icon indicating copy to clipboard operation
tg copied to clipboard

Moving profile directory makes me relogin using phone number

Open hawkofsky opened this issue 3 years ago • 2 comments

I logged with phone number(default profile) and I added another profile to the config file so now I have 2 profiles(logged and so generated auth files). Now I moved second profile directory to other directory. I changed config_directory for the second profile in the config file. And I tried to log with that profile using telegram-cli -p xxx but it asks phone number. I believed it would log in without asking authentication. What's wrong with me?

hawkofsky avatar May 19 '22 10:05 hawkofsky

More than once?

Paulchen232 avatar May 19 '22 12:05 Paulchen232

Yes, and even if I enter phone number and authenticate, it fails with loop.c:480: write_auth_file: Assertion auth_file_fd >= 0' failed. The directory I specified is 777 so anyone can read/write it. I tried to use -U root but the same result. What's the issue?

hawkofsky avatar May 19 '22 12:05 hawkofsky