Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
telegram_bot_antispammer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
telegram_bot_antispammer
Commits
4bb1eb46
Commit
4bb1eb46
authored
Apr 11, 2025
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Сделал описание для команды spam
parent
cb7c5770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bot.py
bot.py
+5
-2
No files found.
bot.py
View file @
4bb1eb46
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__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment