doc: update proxy configuration instructions to match Pyrogram V2

This commit is contained in:
Dineshkarthik 2022-07-19 12:04:23 +02:00
parent 8f75cecd5b
commit bdf3312c96
No known key found for this signature in database
GPG key ID: E256EF0EECD6F201

View file

@ -25,7 +25,7 @@ A meta of last read/downloaded message is stored in the config file so that in s
### Support:
| Category | Support |
|--|--|
|Language | `Python 3.6 ` and above|
|Language | `Python 3.7 ` and above|
|Download media types| audio, document, photo, video, video_note, voice|
### ToDo:
@ -123,18 +123,17 @@ All the downloaded media will be stored inside respective direcotry named in t
| voice_note | path/to/project/voice_note |
## Proxy
`Socks5` proxy is supported in this project currently. To use it, simply create a `config.ini` file in the path of this project, and edit it with your proxy server info as follow:
`socks4, socks5, http` proxies are supported in this project currently. To use it, add the following to the bottom of your `config.yaml` file
```ini
[proxy]
enabled = True
hostname = 127.0.0.1
port = 1080
username =
password =
```yaml
proxy:
scheme: socks5
hostname: 11.22.33.44
port: 1234
username: your_username
password: your_password
```
Then the proxy will automatically be enabled.
If your proxy doesnt require authorization you can omit username and password. Then the proxy will automatically be enabled.
## Contributing
### Contributing Guidelines