aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexternal/messenger.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/external/messenger.py b/external/messenger.py
index e45a45e..3df1a5c 100755
--- a/external/messenger.py
+++ b/external/messenger.py
@@ -502,6 +502,17 @@ class MessengerBridge:
else:
event["text"] += "\nUnhandled attachment: {}".format(at)
+ if isinstance(message_object.sticker, Sticker):
+ stk = message_object.sticker
+ event["attachments"].append({
+ "filename": stk.label,
+ "url": stk.url,
+ "image_size": {
+ "width": stk.width,
+ "height": stk.height,
+ },
+ })
+
if thread_type == ThreadType.GROUP:
event["room"] = thread_id
self.ensureJoined(author, thread_id)