From a2eff3236238fd1d0be818b81a0b05854761b02d Mon Sep 17 00:00:00 2001 From: BhasherBEL Date: Tue, 19 Dec 2023 09:22:17 +0100 Subject: [PATCH] tg2 --- main.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 18cd257..0082e24 100644 --- a/main.py +++ b/main.py @@ -64,12 +64,12 @@ async def send_message(text): 'Content-Type': 'application/json', }, auth=(os.environ.get('MATRIX_BASIC_AUTH_USER'), os.environ.get('MATRIX_BASIC_AUTH_PASS')), - json=json.encode(dic) + json=dic ) async def main(): - await send_message('tg² telegram_bot is watching!') + await send_message(['tg² telegram_bot is watching!']) last = [] diff --git a/requirements.txt b/requirements.txt index 4a536d0..92f27a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ # Tested versions. Upgrade at your own risks -tgtg==0.16.0 +tgtg==0.16.1 python-telegram-bot==20.2