alfem/telegram-download-daemon

Two factor authentication

Closed this issue · 1 comments

The first time I ran the script, it requests me to give him my phone number to validate.

But it was one time, and after that, it doesn't ask me anymore.

Is it will ask me again sometimes?

Can we automate that (I saw something about bot_id?)?

alfem commented

It is caused by the Telegram auth system for users api (not needed for bots).

After a first authentication, using your phone number, credentials are stored in a session file. The file is named "DownloadDaemon.session" (name is configured in the variable 'session'). That session is linked to your own user, and therefore it must not be shared.