admin管理员组文章数量:1418958
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('Добро пожаловать в наш сервис!
本文标签:
pythonAiogram is not handledStack Overflow
版权声明:本文标题:python - Aiogram is not handled - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1745299571a2652288.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论