Defines navigation strategies for dialog stacks in a chat interface. Use this to control how new dialogs replace or stack upon existing ones.
# Source: https://github.com/Tishka17/aiogram_dialog | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from enum import Enum
class LaunchMode(Enum):
"""
Modes of launching new dialog.
**ROOT**:
dialogs will be always a root dialog in stack.
Starting such dialogs will automatically reset stack.
Example: main menu
**EXCLUSIVE**:
dialogs can be only a single dialog in stack.
Starting such dialogs will automatically reset stack.
Starting other dialogs on top of them is forbidden
Example: banners
**SINGLE_TOP**:
dialogs will not be repeated on top of stack.
Starting the same dialog right
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key