Answer the question
In order to leave comments, you need to log in
Telethon. How can I save the session not to a file, but to a database?
While doing
client = telethon.TelegramClient('anon', api_id, api_hash)
Answer the question
In order to leave comments, you need to log in
Yes, you can use SQLite, MongoDB, and SQLAlchemy.
Here is a link to the documentation:
https://docs.telethon.dev/en/latest/concepts/sessi...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question