Small changes in the documentation

This commit is contained in:
JRoot Junior 2023-11-23 00:27:37 +02:00
parent eeabf3cf32
commit 9f62d93566
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
3 changed files with 3 additions and 4 deletions

View file

@ -92,7 +92,7 @@ Also we need to define a handler that helps to start the quiz game:
.. literalinclude:: ../../../examples/quiz_scene.py
:language: python
:caption: Start command handler
:lines: 251-253
:lines: 260-262
Once the scene is defined, we need to register it in the SceneRegistry:
@ -155,7 +155,7 @@ Now we can run the bot and test the quiz game:
.. literalinclude:: ../../../examples/quiz_scene.py
:language: python
:caption: Run the bot
:lines: 282-
:lines: 291-
Complete them all

View file

@ -260,7 +260,6 @@ class QuizScene(Scene, state="quiz"):
quiz_router = Router(name=__name__)
# Add handler that initializes the scene
quiz_router.message.register(QuizScene.as_handler(), Command("quiz"))
quiz_router.include_scene(QuizScene)
@quiz_router.message(Command("start"))

View file

@ -30,7 +30,7 @@ from aiogram.fsm.scene import (
from aiogram.fsm.state import State, StatesGroup
from aiogram.fsm.storage.base import StorageKey
from aiogram.fsm.storage.memory import MemoryStorage, MemoryStorageRecord
from aiogram.types import Chat, Message, TelegramObject, Update
from aiogram.types import Chat, Message, Update
from tests.mocked_bot import MockedBot