altrepo: add api.api.version -> api.version link

parent 4dd06b46
......@@ -157,3 +157,6 @@ class ALTRepoAPI:
self.bug = BugInfo(self._client)
self.file = FileInfo(self._client)
self.site = SiteInfo(self._client)
async def version(self) -> models.APIVersion:
return await self.api.version()
......@@ -7,7 +7,7 @@ dp = Dispatch()
@dp.message(Command("altrepo_info"))
async def info_handler(m: Message) -> None:
api_data = await altrepo.api.api.version()
api_data = await altrepo.api.version()
await m.answer(
"Telegram бот для портала packages.altlinux.org\n"
f"Версия API: {api_data.version}"
......
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