mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Update proxy example
This commit is contained in:
parent
39694a2949
commit
ed5fab6952
@ -21,15 +21,14 @@ you can omit ``username`` and ``password``.
|
|||||||
|
|
||||||
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