From 52f1b6e722530d269aabc98b2be60a8a1b04d6b9 Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 4 Oct 2017 14:13:38 +0200 Subject: [PATCH] Introduction to session files --- Session-Files.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Session-Files.md diff --git a/Session-Files.md b/Session-Files.md new file mode 100644 index 0000000..7440c14 --- /dev/null +++ b/Session-Files.md @@ -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**). \ No newline at end of file