mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
Get active settings
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user