mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Mention that the client should be .disconnect()'ed
parent
88208fcbb6
commit
778a01c9e1
6
Home.md
6
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/.
|
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
|
## Side notes
|
||||||
|
|
||||||
As a side note, you will often encounter these lines:
|
As a side note, you will often encounter these lines:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user