From f5b3335af0b2f40645f2ef85af87191734cd3d3a Mon Sep 17 00:00:00 2001 From: Kostiantyn Kuleshov Date: Mon, 24 Apr 2023 14:38:03 +0300 Subject: [PATCH 1/3] master (#21) Co-authored-by: Renovate Co-authored-by: profitroll Reviewed-on: https://git.end-play.xyz/profitroll/TelegramPoster/pulls/21 --- modules/api_client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/api_client.py b/modules/api_client.py index d7cf50b..af0507a 100644 --- a/modules/api_client.py +++ b/modules/api_client.py @@ -82,12 +82,12 @@ async def random_pic(token: Union[str, None] = None) -> Tuple[str, str]: f'{configGet("address", "posting", "api")}/albums/{configGet("album", "posting", "api")}/photos?q=&page_size={configGet("page_size", "posting")}&caption=queue', headers={"Authorization": f"Bearer {token}"}, ) - logWrite( - locale("random_pic_response", "console", locale=configGet("locale_log")).format( - await resp.json() - ), - debug=True, - ) + # logWrite( + # locale("random_pic_response", "console", locale=configGet("locale_log")).format( + # await resp.json() + # ), + # debug=True, + # ) if resp.status != 200: logWrite( locale( -- 2.39.2 From 93804345df3916d6c3ebae79f4ef072dbd835788 Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 8 May 2023 11:51:15 +0300 Subject: [PATCH 2/3] Update dependency pyrogram to v2.0.106 (#22) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [pyrogram](https://github.com/pyrogram) ([source](https://github.com/pyrogram/pyrogram)) | patch | `==2.0.104` -> `==2.0.106` | --- ### Release Notes
pyrogram/pyrogram ### [`v2.0.106`](https://github.com/pyrogram/pyrogram/compare/v2.0.105...v2.0.106) [Compare Source](https://github.com/pyrogram/pyrogram/compare/v2.0.105...v2.0.106) ### [`v2.0.105`](https://github.com/pyrogram/pyrogram/compare/v2.0.104...v2.0.105) [Compare Source](https://github.com/pyrogram/pyrogram/compare/v2.0.104...v2.0.105)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://git.end-play.xyz/profitroll/TelegramPoster/pulls/22 Co-authored-by: Renovate Co-committed-by: Renovate --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2 From 337a7b28aac65a3bb5ee7f0eb5875bdc842e6110 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 16 May 2023 12:30:56 +0200 Subject: [PATCH 3/3] Fixed coroutines not being awaited --- modules/sender.py | 4 ++-- 1 file changed, 2 insertions(+), 2 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()) -- 2.39.2