Skip to content

save tdata session to telethon #48

Answered by thedemons
G-shaft asked this question in Q&A
Discussion options

You must be logged in to vote

The system argument is either "windows", "macos" or "linux" based on which OS the Telegram Desktop is running on (which OS the tdata was authorized).
I don't quite get what you mean by "Can I define which system I should select?", well, if you're running on Windows, then it's "windows", if you're on macOS then it's "macos".

You can always print the API out to see what's its parameters, for example:

oldAPI = API.TelegramDesktop.Generate(system="windows", unique_id="old_tdata")
print(oldAPI)

Also, if you're loading the tdata which was generated by Telegram Desktop app, you should just use the default API, without generating random device data.

tdesk = TDesktop("tdata", api=API.TelegramDesktop

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@G-shaft
Comment options

@thedemons
Comment options

@Alex6447
Comment options

@Alex6447
Comment options

Answer selected by thedemons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants