текущая версия (рабочая)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
from aiogram import Bot, Dispatcher
|
||||
from aiogram.client.session.aiohttp import AiohttpSession
|
||||
|
||||
from app import config
|
||||
|
||||
session = (
|
||||
AiohttpSession(proxy=(config.TG_PROXY,))
|
||||
if config.TG_PROXY
|
||||
else AiohttpSession()
|
||||
)
|
||||
bot = Bot(config.BOT_TOKEN, session=session)
|
||||
dp = Dispatcher()
|
||||
Reference in New Issue
Block a user