Commit 4bb1eb46 authored by Roman Alifanov's avatar Roman Alifanov

Сделал описание для команды spam

parent cb7c5770
import asyncio
from aiogram import Bot, Dispatcher, Router
from aiogram.types import ChatMemberUpdated, Message
from aiogram import Bot, Dispatcher, Router
from aiogram.types import ChatMemberUpdated, Message, BotCommand
from aiogram.exceptions import AiogramError
from itertools import chain
import os
......@@ -211,6 +211,9 @@ async def report_spam(message: types.Message):
async def main():
"""Запуск бота."""
logger.info("bot is running")
await bot.set_my_commands([
BotCommand(command="/spam", description="Оповестить о спаме уполномоченных людей"),
])
await dp.start_polling(bot)
if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment