mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-18 20:12:23 +03:00
Destroyed Getting Started (markdown)
parent
5332a57838
commit
410d22ed26
|
@ -1,18 +0,0 @@
|
||||||
* [Installing Telethon](Installing-Telethon)
|
|
||||||
* [Creating a Client](Creating-a-Client)
|
|
||||||
* [`*.session` Files](Session-Files)
|
|
||||||
* [Sending Requests](Sending-Requests)
|
|
||||||
* [Working with Updates](Working-with-Updates)
|
|
||||||
* [Accessing the Full API](Accessing-the-Full-API)
|
|
||||||
|
|
||||||
If you want to use a **proxy**, you have to [install PySocks](https://github.com/Anorov/PySocks#installation) (via pip or manual) and then set the appropriated parameters:
|
|
||||||
|
|
||||||
```python
|
|
||||||
import socks
|
|
||||||
client = TelegramClient('session_id',
|
|
||||||
api_id=12345, api_hash='0123456789abcdef0123456789abcdef',
|
|
||||||
proxy=(socks.SOCKS5, 'localhost', 4444)
|
|
||||||
)
|
|
||||||
```
|
|
||||||
|
|
||||||
The `proxy=` argument should be a `tuple`, a `list` or a `dict`, consisting of parameters described [here](https://github.com/Anorov/PySocks#usage-1>).
|
|
Loading…
Reference in New Issue
Block a user