mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Small changes in the documentation
This commit is contained in:
parent
eeabf3cf32
commit
9f62d93566
3 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue