mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
13 lines
416 B
Python
13 lines
416 B
Python
from aiohttp import ClientSession
|
|
|
|
from neuroapi.types import BotSettings as BotSettingsType
|
|
|
|
from .api_method import ApiMethod
|
|
|
|
|
|
class BotSettings(ApiMethod):
|
|
async def get(self)-> BotSettingsType:
|
|
async with ClientSession() as session:
|
|
response = await session.get(self.api_url+'/settings')
|
|
settings = BotSettingsType.from_dict(await response.json())
|
|
return settings |