D
D
demetro192021-08-02 00:07:08
Python
demetro19, 2021-08-02 00:07:08

Why doesn't the aiogram library work?

61070fc399649146513108.pngAiogram library not working.

import config
import logging
from aiogram import Bot, Dispatcher, executor, types

# Задаем уровень логов
logging.basicConfig(level=logging.INFO)

# Инициализация бота
bot = Bot(token=config.TOKEN)
dp = Dispatcher(bot)


# Эхо
@dp.message_handler()
async def echo(message: types.Message):
    await message.answer(message.text)


# запускаем лонг поллинг
if __name__ == '__main__':
    executor.start_polling(dp, skip_updates=True)

61070cf01c7ee154655803.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RINAMI, 2021-08-02
@RINAMI

Type pip install aiogram into the terminal.
Next, write pip
And if it is in the list of installed ones, then it is installed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question