From 242c0ba3629398fc2c93307d72b5f4c3abe2ac4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Tue, 23 Jan 2024 18:19:54 +0100 Subject: [PATCH] Fix GIF upload again. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abdulkadir Furkan Şanlı --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1f0c54d..2ac15a6 100755 --- a/main.py +++ b/main.py @@ -213,7 +213,7 @@ async def message_callback(client, room, event): ) with open("./parker.gif", "rb") as gif_file: response = await client.upload(gif_file, content_type="image/gif") - gif_uri = response.content_uri + gif_uri = response[0] await client.room_send( room_id=room_id, message_type="m.room.message",