Skip to content

Commit ed5fab6

Browse files
committed
Update proxy example
1 parent 39694a2 commit ed5fab6

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

docs/source/topics/proxy.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ you can omit ``username`` and ``password``.
1919

2020
.. code-block:: python
2121
22-
from pyrogram import Client
23-
24-
app = Client(
25-
"my_account",
26-
proxy=dict(
27-
scheme="socks5", # "socks4", "socks5" and "http" are supported
28-
hostname="11.22.33.44",
29-
port=1234,
30-
username="<your_username>",
31-
password="<your_password>"
32-
)
33-
)
22+
from pyrogram import Client
23+
24+
proxy = {
25+
"scheme": "socks5", # "socks4", "socks5" and "http" are supported
26+
"hostname": "11.22.33.44",
27+
"port": 1234,
28+
"username": "username",
29+
"password": "password"
30+
}
31+
32+
app = Client("my_account", proxy=proxy)
3433
3534
app.run()

0 commit comments

Comments
 (0)