Skip to content

Commit c5fdc44

Browse files
committed
Add proxy
1 parent eb6858a commit c5fdc44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example_bot/main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
load_dotenv()
77

8-
bot = Bot(token=os.environ.get('TOKEN'))
8+
PROXY_URL = "http://proxy.server:3128"
9+
bot = Bot(token=os.environ.get('TOKEN'), proxy=PROXY_URL)
910
dp = Dispatcher(bot)
1011

1112

0 commit comments

Comments
 (0)