Hello everyone, I wrote a telegram bot on the aiogram library, but this error occurs when starting: aiogram.exceptions.TelegramNetworkError: HTTP Client says - ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [Network is unreachable].
I understand that this error is related to the proxy, I tried to fix it, but it still does not work. People who understand aiogram, please tell me what to add to my code so that it works
Here is the code:
from aiogram import Bot, Dispatcher, types
import asyncio
import logging
from aiogram import F
dp = Dispatcher()
bot = Bot(token='TOKEN')
logging.basicConfig(level=logging.INFO
@dp.message(F.text)
async def eho_bot(message: types.Message):
await message.answer(message.text)
async def main():
await dp.start_polling(bot, skip_updates=True)
if __name__ == "__main__":
asyncio.run(main())
(I'm uploading for the first time, sorry for the English, I'm using Google translator)