mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-19 12:32:24 +03:00
Introduction to session files
parent
c7397dd275
commit
52f1b6e722
5
Session-Files.md
Normal file
5
Session-Files.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
The first parameter you pass the the constructor of the `TelegramClient` is 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.
|
||||||
|
|
||||||
|
These sessions 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.
|
||||||
|
|
||||||
|
These files will by default also save all the input entities that you've seen (**WIP**).
|
Loading…
Reference in New Issue
Block a user