️️
Size: a a a
️️
T
️️
️️
T
T
T
️️
T
G
d
from aiogram import Bot, Dispatcher, executor, md, types
from dynaconf import settings
TOKEN = settings.get('telegram_token')
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
DEBUG = settings.current_env == 'development'
if DEBUG:
import aiohttp
LOGIN = '****'
PASSWORD = '****'
PROXY_URL = 'socks5://**.**.**.**:8000'
PROXY_AUTH = aiohttp.BasicAuth(login=LOGIN, password=PASSWORD)
bot.proxy = PROXY_URL
bot.proxy_auth = PROXY_AUTH
@dp.message_handler(content_types=types.ContentTypes.TEXT)
async def echo(msg: types.Message):
await msg.reply(msg.text)
def main():
if DEBUG:
executor.start_polling(dp, skip_updates=True)
if __name__ == "__main__":
main()
️️
ЕР
from aiogram import Bot, Dispatcher, executor, md, types
from dynaconf import settings
TOKEN = settings.get('telegram_token')
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
DEBUG = settings.current_env == 'development'
if DEBUG:
import aiohttp
LOGIN = '****'
PASSWORD = '****'
PROXY_URL = 'socks5://**.**.**.**:8000'
PROXY_AUTH = aiohttp.BasicAuth(login=LOGIN, password=PASSWORD)
bot.proxy = PROXY_URL
bot.proxy_auth = PROXY_AUTH
@dp.message_handler(content_types=types.ContentTypes.TEXT)
async def echo(msg: types.Message):
await msg.reply(msg.text)
def main():
if DEBUG:
executor.start_polling(dp, skip_updates=True)
if __name__ == "__main__":
main()
𝓶
ЕР
𝓶
𝓶
𝐃𝐊
Т
d