Compare commits

...

5 commits

3 changed files with 8 additions and 7 deletions

View file

@ -1,4 +1,6 @@
debug: false # debug logging
timeout: 2 # http requests timeout
telegram_token: # telegram bot token
kekkai_instance: 'https://kekkai-api.redume.su/'
webhook:
secret_token: 'jTDnK6nuEZ654b'
base_url: 'example.com'
path: '/webhook'
telegram_token:
kekkai_instance: 'https://kekkai-api.redume.su'

View file

@ -7,7 +7,7 @@ config = yaml.safe_load(open('config.yaml'))
async def create_chart(from_currency: str, conv_currency: str) -> (dict, None):
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=3)) as session:
async with session.get(f'{config["kekkai_instance"]}/api/getChart/week/', params={
async with session.get(f'{config["kekkai_instance"]}/api/getChart/month/', params={
'from_currency': from_currency,
'conv_currency': conv_currency
}) as res:

View file

@ -1,4 +1,3 @@
aiohttp~=3.9.5
requests~=2.32.3
PyYAML~=6.0.1
aiogram~=3.7.0
aiogram~=3.15.0