1
0
Fork 0
forked from zovos/bot_tg

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): async def on_startup(bot: Bot):
# Выставляем меню команд в интерфейсе Telegram. # Выставляем меню команд в интерфейсе Telegram.
try: 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 = [ commands = [
BotCommand(command="start", description="Приветствие"), BotCommand(command="start", description="Приветствие"),
BotCommand(command="help", description="Подсказки по командам"), BotCommand(command="help", description="Подсказки по командам"),
@ -819,13 +800,13 @@ def main():
BotCommand(command="fetch", description="цены (новый источник)"), BotCommand(command="fetch", description="цены (новый источник)"),
BotCommand(command="zvetok", description="Цветянский бля"), BotCommand(command="zvetok", description="Цветянский бля"),
BotCommand(command="talk", description="Побазарить"), BotCommand(command="talk", description="Побазарить"),
BotCommand(command="svodka", description="СВО: итоги"),
] ]
# Явно задаём команды для default/private/group, чтобы меню через "/" появлялось стабильно. # Явно задаём команды для default/private/group, чтобы меню через "/" появлялось стабильно.
scopes = ( scopes = (
BotCommandScopeDefault(), BotCommandScopeDefault(),
BotCommandScopeAllPrivateChats(), BotCommandScopeAllPrivateChats(),
BotCommandScopeAllGroupChats(), BotCommandScopeAllGroupChats(),
>>>>>>> Zhirik1337-wpng
) )
for scope in scopes: for scope in scopes:
await bot.set_my_commands(commands, scope=scope) await bot.set_my_commands(commands, scope=scope)

View file

@ -2,4 +2,5 @@ aiogram>=3.4.1
pillow>=10.3.0 pillow>=10.3.0
requests>=2.31.0 requests>=2.31.0
beautifulsoup4 beautifulsoup4
lxml lxml
pysqlite3-binary>=0.5.3