I use wtelegramclient library to sign in a telegram account via api
WTelegramClient saves (typically in the encrypted file binWTelegram.session) its state and the authentication keys that were negociated with Telegram so that you needn’t sign-in again every time.
But I want save with other path name and load it
So How to do it?
Thanks
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
By default, the WTelegram.session file is saved in the bin subfolder or at the root of your project.
In order to change its name and location, you just need to reply something to
"session_pathname"
instead ofnull
in your Config callback.See also this FAQ for more information around this subject
add
to your config like this:
sessions is the folder the filename.session is stored in
this will be in your bin/debug folder