Update documentation and code snippets

This commit is contained in:
2025-12-02 11:22:31 +03:00
parent 2ff47398ba
commit 7c20bf296b
23 changed files with 63 additions and 62 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ router = Router(title="Data Example")
@router.command(Command("set", description="Set data"))
def set_handler(response: Response):
# Обновляем глобальное хранилище данных
# Update global data storage
response.update_data(
{
"user_name": "John",
@@ -18,7 +18,7 @@ def set_handler(response: Response):
@router.command(Command("show", description="Show data"))
def show_handler(response: Response):
# Получаем данные из глобального хранилища
# Get data from global storage
data = response.get_data()
if "user_name" in data:
print(f"User: {data['user_name']}")