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