Answer the question
In order to leave comments, you need to log in
How to solve the problem with starting the Bot with the aiogram library?
Hello. Wrote the following test bot on aiogram:
import logging
from aiogram import Bot, Dispatcher, executor, types
API_TOKEN ='Указан мой токен'
logging.basicConfig(level=logging.INFO)
bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(commands =['start, help'])
async def send_welcome(message: types.Message):
await message.reply("hi\nI'm aiobot..")
@dp.message_handler()
async def echo(message: types.Message):
await message.answer(message.text)
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)
Answer the question
In order to leave comments, you need to log in
On an older version of aiogram, everything works. Looks like an update issue.
faced a similar problem
Above in the comment is true, aiogram 2.10 produces such errors Solved
by removing 2.10 and installing 2.9
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question