From e5b2584d4cdd183f6f9915a0184bce82ab069918 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kuleshov Date: Tue, 16 May 2023 15:45:23 +0300 Subject: [PATCH] Bug fixes and Pyrogram bump (#23) Co-authored-by: Renovate Co-authored-by: profitroll Reviewed-on: https://git.end-play.xyz/profitroll/TelegramPoster/pulls/23 --- modules/sender.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/sender.py b/modules/sender.py index ed4de5a..52a0df0 100644 --- a/modules/sender.py +++ b/modules/sender.py @@ -53,14 +53,14 @@ async def send_content(app: PosterClient) -> None: logWrite( locale( "post_invalid_pic", "console", locale=configGet("locale") - ).format(response.status, str(response.json())) + ).format(response.status, str(await response.json())) ) if configGet("error", "reports"): await app.send_message( app.owner, locale( "post_invalid_pic", "message", locale=configGet("locale") - ).format(response.status, response.json()), + ).format(response.status, await response.json()), ) tmp_dir = str(uuid4()) diff --git a/requirements.txt b/requirements.txt index bba88b7..c1d08d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ python_dateutil==2.8.2 apscheduler==3.10.1 pytimeparse==1.1.8 convopyro==0.5 -pyrogram==2.0.104 +pyrogram==2.0.106 aiofiles~=23.1.0 tgcrypto==1.2.5 aiohttp~=3.8.4