mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Update proxy example
This commit is contained in:
parent
39694a2949
commit
ed5fab6952
@ -19,17 +19,16 @@ you can omit ``username`` and ``password``.
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
app = Client(
|
proxy = {
|
||||||
"my_account",
|
"scheme": "socks5", # "socks4", "socks5" and "http" are supported
|
||||||
proxy=dict(
|
"hostname": "11.22.33.44",
|
||||||
scheme="socks5", # "socks4", "socks5" and "http" are supported
|
"port": 1234,
|
||||||
hostname="11.22.33.44",
|
"username": "username",
|
||||||
port=1234,
|
"password": "password"
|
||||||
username="<your_username>",
|
}
|
||||||
password="<your_password>"
|
|
||||||
)
|
app = Client("my_account", proxy=proxy)
|
||||||
)
|
|
||||||
|
|
||||||
app.run()
|
app.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user