Documentation enhancements

This commit is contained in:
Lonami Exo
2018-05-06 13:03:30 +02:00
parent 2045e00563
commit f442e01560
3 changed files with 30 additions and 1 deletions

View File

@@ -9,6 +9,14 @@ the ``session``, and defaults to be the session name (or full path). That is,
if you create a ``TelegramClient('anon')`` instance and connect, an
``anon.session`` file will be created on the working directory.
Note that if you pass a string it will be a file in the current working
directory, although you can also pass absolute paths.
The session file contains enough information for you to login without
re-sending the code, so if you have to enter the code more than once,
maybe you're changing the working directory, renaming or removing the
file, or using random names.
These database files using ``sqlite3`` contain the required information to
talk to the Telegram servers, such as to which IP the client should connect,
port, authorization key so that messages can be encrypted, and so on.