Get active settings

This commit is contained in:
2024-02-14 22:41:40 +03:00
parent 0babe084ad
commit 5a402fcd5b
2 changed files with 19 additions and 11 deletions

View File

@@ -10,4 +10,10 @@ class BotSettings(ApiMethod):
async with ClientSession() as session:
response = await session.get(self.api_url+'/settings')
settings = BotSettingsType.from_dict(await response.json())
return settings
async def get_update(self) -> BotSettingsType:
async with ClientSession() as session:
response = await session.get(self.api_url+'/settings/active')
settings = BotSettingsType.from_dict(await response.json())
return settings