fix old staff

This commit is contained in:
q 2026-02-22 21:02:36 +03:00
parent 1c27e84dc1
commit 0d0967001a
2 changed files with 3 additions and 21 deletions

21
main.py
View file

@ -787,25 +787,6 @@ def main():
async def on_startup(bot: Bot):
# Выставляем меню команд в интерфейсе Telegram.
try:
<<<<<<< HEAD
await bot.set_my_commands(
[
BotCommand(command="start", description="Приветствие"),
BotCommand(command="help", description="Подсказки по командам"),
BotCommand(command="maket", description="Вписать текст в макет 1"),
BotCommand(command="gen_mem", description="Мем из фото (ответом)"),
BotCommand(command="break", description="Сколько минут до перекура"),
BotCommand(command="size", description="хуй"),
BotCommand(command="penis", description="миниигра 1 раз в 24ч"),
BotCommand(command="top_penis", description="топ по длине"),
BotCommand(command="prices", description="цены x-server"),
BotCommand(command="fetch", description="цены (новый источник)"),
BotCommand(command="zvetok", description="Цветянский бля"),
BotCommand(command="talk", description="Побазарить"),
BotCommand(command="svodka", description="СВО: итоги"),
]
=======
commands = [
BotCommand(command="start", description="Приветствие"),
BotCommand(command="help", description="Подсказки по командам"),
@ -819,13 +800,13 @@ def main():
BotCommand(command="fetch", description="цены (новый источник)"),
BotCommand(command="zvetok", description="Цветянский бля"),
BotCommand(command="talk", description="Побазарить"),
BotCommand(command="svodka", description="СВО: итоги"),
]
# Явно задаём команды для default/private/group, чтобы меню через "/" появлялось стабильно.
scopes = (
BotCommandScopeDefault(),
BotCommandScopeAllPrivateChats(),
BotCommandScopeAllGroupChats(),
>>>>>>> Zhirik1337-wpng
)
for scope in scopes:
await bot.set_my_commands(commands, scope=scope)

View file

@ -3,3 +3,4 @@ pillow>=10.3.0
requests>=2.31.0
beautifulsoup4
lxml
pysqlite3-binary>=0.5.3