mirror of
https://github.com/Redume/Shirino.git
synced 2025-04-02 18:57:34 +03:00
Compare commits
5 commits
0537bfe3cf
...
ad8dc2da35
Author | SHA1 | Date | |
---|---|---|---|
ad8dc2da35 | |||
39ea50f0d7 | |||
7ed98e5b88 | |||
6a2291c6bf | |||
169166af3b |
3 changed files with 8 additions and 7 deletions
|
@ -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'
|
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
aiohttp~=3.9.5
|
||||
requests~=2.32.3
|
||||
PyYAML~=6.0.1
|
||||
aiogram~=3.7.0
|
||||
aiogram~=3.15.0
|
Loading…
Add table
Add a link
Reference in a new issue