Files
PrimoWorldsBot/BotCode/routers/commands/user_cmd/start_cmd.py

18 lines
716 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BotCode/routers/commands/user_cmd/start_cmd.py
# # Работа с командой /start, для запуска бота
from BotLibrary.samples.user_cmd_class import CommandHandler
from BotCode.keyboards import get_start_kb
# Создание команды /start с нужными параметрами
start_cmd = CommandHandler(
name="start",
description="Добро пожаловать!",
keywords=["start", "старт", "запуск", "пуск", "on", "вкл", "с", "s", "ы",
"ыефке", "cnfhn", "pfgecr", "gecr", "щт", "drk", "restart", "куыефке"],
callbackdata="keywords",
text_msg="Старт!",
keyboard=get_start_kb,
chat_action=True
)