From 778a01c9e19da82d8f1123b2b91bca227395b5b1 Mon Sep 17 00:00:00 2001 From: Lonami Date: Fri, 9 Jun 2017 19:37:02 +0200 Subject: [PATCH] Mention that the client should be .disconnect()'ed --- Home.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Home.md b/Home.md index 76335e3..ab566f4 100644 --- a/Home.md +++ b/Home.md @@ -19,6 +19,12 @@ if not client.is_user_authorized(): The online documentation for all available requests, types and constructors is available online at https://lonamiwebs.github.io/Telethon/. +Although Python will probably clean up the resources used by the `TelegramClient`, you should always `.disconnect()` it once you're done: + +```python +client.disconnect() +``` + ## Side notes As a side note, you will often encounter these lines: