Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
altlinux-packages-bot
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
Kirill Unitsaev
altlinux-packages-bot
Commits
2d7d6ec6
Verified
Commit
2d7d6ec6
authored
Jul 19, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bot: add commands menu
parent
4a0e3e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.py
src/main.py
+5
-1
No files found.
src/main.py
View file @
2d7d6ec6
from
telegrinder
import
API
,
Telegrinder
,
Token
,
Message
from
telegrinder.modules
import
logger
from
telegrinder.tools.formatting
import
HTMLFormatter
from
telegrinder.types
import
LinkPreviewOptions
from
telegrinder.types
import
LinkPreviewOptions
,
BotCommand
from
telegrinder.node
import
Error
from
config
import
config
...
...
@@ -25,6 +25,10 @@ async def startup():
db
.
create_tables
([
User
])
logger
.
info
(
"initializing ALTRepo"
)
await
altrepo
.
init
()
await
bot
.
api
.
set_my_commands
(
commands
=
[
BotCommand
(
"watch"
,
"Отслеживание по пакетам"
),
BotCommand
(
"bugs"
,
"Отслеживание по ошибкам"
)
])
@bot.loop_wrapper.lifespan.on_shutdown
async
def
shutdown
():
...
...
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