Update proxy example

This commit is contained in:
Dan 2022-04-24 11:56:07 +02:00
parent 39694a2949
commit ed5fab6952

View File

@ -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()