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
97b5bb62
Verified
Commit
97b5bb62
authored
Jul 16, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
altrepo: add api.api.version -> api.version link
parent
4dd06b46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
methods.py
src/altrepo/api/methods.py
+3
-0
help.py
src/handlers/help.py
+1
-1
No files found.
src/altrepo/api/methods.py
View file @
97b5bb62
...
@@ -157,3 +157,6 @@ class ALTRepoAPI:
...
@@ -157,3 +157,6 @@ class ALTRepoAPI:
self
.
bug
=
BugInfo
(
self
.
_client
)
self
.
bug
=
BugInfo
(
self
.
_client
)
self
.
file
=
FileInfo
(
self
.
_client
)
self
.
file
=
FileInfo
(
self
.
_client
)
self
.
site
=
SiteInfo
(
self
.
_client
)
self
.
site
=
SiteInfo
(
self
.
_client
)
async
def
version
(
self
)
->
models
.
APIVersion
:
return
await
self
.
api
.
version
()
src/handlers/help.py
View file @
97b5bb62
...
@@ -7,7 +7,7 @@ dp = Dispatch()
...
@@ -7,7 +7,7 @@ dp = Dispatch()
@dp.message
(
Command
(
"altrepo_info"
))
@dp.message
(
Command
(
"altrepo_info"
))
async
def
info_handler
(
m
:
Message
)
->
None
:
async
def
info_handler
(
m
:
Message
)
->
None
:
api_data
=
await
altrepo
.
api
.
api
.
version
()
api_data
=
await
altrepo
.
api
.
version
()
await
m
.
answer
(
await
m
.
answer
(
"Telegram бот для портала packages.altlinux.org
\n
"
"Telegram бот для портала packages.altlinux.org
\n
"
f
"Версия API: {api_data.version}"
f
"Версия API: {api_data.version}"
...
...
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