Support Facebook stickers
This commit is contained in:
parent
6c118d651e
commit
06929747d6
1 changed files with 11 additions and 0 deletions
11
external/messenger.py
vendored
11
external/messenger.py
vendored
|
@ -502,6 +502,17 @@ class MessengerBridge:
|
||||||
else:
|
else:
|
||||||
event["text"] += "\nUnhandled attachment: {}".format(at)
|
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:
|
if thread_type == ThreadType.GROUP:
|
||||||
event["room"] = thread_id
|
event["room"] = thread_id
|
||||||
self.ensureJoined(author, thread_id)
|
self.ensureJoined(author, thread_id)
|
||||||
|
|
Loading…
Reference in a new issue