From dde2ea06bb216f9ffa2f23bc9a5b358d99a2902e Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Sun, 16 Apr 2023 23:45:36 +0200
Subject: [PATCH] Fix sticker body

---
 .gitignore        | 1 +
 adacher_matrix.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index c98ac69..d195ee8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 *.png
 *.ttf
 .env
+session.txt
diff --git a/adacher_matrix.py b/adacher_matrix.py
index 28f67fb..a38fa91 100755
--- a/adacher_matrix.py
+++ b/adacher_matrix.py
@@ -54,9 +54,10 @@ async def echo(room, event):
                     "mimetype": "image/png",
                     "h": height,
                     "w": width,
+                    "size": 0,
                     "thumbnail_url": uri,
                     },
-                "body": json.JSONEncoder().encode(cmd),
+                "body": cmd,
                 "m.relates_to": {
                     "m.in_reply_to": {
                         "event_id": event.event_id
-- 
GitLab