python - Aiogram is not handled - Stack Overflow

messages are not being processedINFO:aiogram.event:Update id=794626540 is not handled. Duration 3 ms b

messages are not being processed

INFO:aiogram.event:Update id=794626540 is not handled. Duration 3 ms by bot id=7469046391

I'm not a programmer and I can't understand at all why it stopped reading the start message, explain how to work with the router and what did I do wrong?

I think there's something missing here, but I don't understand.

my code:

import asyncio
import logging

from aiogram import Bot, Dispatcher, types, F, Router
from aiogram.types import Message
from aiogram.filtersmand import Command
from aiogram.fsm.context import FSMContext
from aiogram.fsm.state import State, StatesGroup
from aiogram.utils.markdown import hbold, hlink
from aiogram.utils.chat_action import ChatActionSender


from config import TOKEN
from aiogram.fsm.storage.memory import MemoryStorage

storage = MemoryStorage()
dp = Dispatcher(storage=storage)
logging.basicConfig(level=logging.INFO)
bot = Bot(token=TOKEN)

class Form(StatesGroup):
    brand = State()
    model = State()
    year = State()
    vin = State()
    parts = State()
    problem = State()

questionnaire_router = Router()


@questionnaire_router.message(Command("start"))
async def start_questionnaire_process(message: Message):
    async with ChatActionSender.typing(bot=bot, chat_id=message.chat.id):
        await asyncio.sleep(2)
        await message.answer('Добро пожаловать в наш сервис! 

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745299571a4621352.html

相关推荐

  • python - Aiogram is not handled - Stack Overflow

    messages are not being processedINFO:aiogram.event:Update id=794626540 is not handled. Duration 3 ms b

    8小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信