Browse Source

captions: add option to send captions with the image using MSC2530 / MSC3552

Signed-off-by: Sumner Evans <sumner@beeper.com>
Sumner Evans 2 years ago
parent
commit
626aa304fb
2 changed files with 4 additions and 0 deletions
  1. 1 0
      mautrix_instagram/config.py
  2. 3 0
      mautrix_instagram/example-config.yaml

+ 1 - 0
mautrix_instagram/config.py

@@ -77,6 +77,7 @@ class Config(BaseBridgeConfig):
         copy("bridge.resend_bridge_info")
         copy("bridge.unimportant_bridge_notices")
         copy("bridge.disable_bridge_notices")
+        copy("bridge.caption_in_message")
         copy("bridge.bridge_notices")
 
         copy("bridge.provisioning.enabled")

+ 3 - 0
mautrix_instagram/example-config.yaml

@@ -237,6 +237,9 @@ bridge:
     unimportant_bridge_notices: true
     # Disable bridge notices entirely
     disable_bridge_notices: false
+    # Send captions in the same message as images. This will send data compatible with both MSC2530 and MSC3552.
+    # This is currently not supported in most clients.
+    caption_in_message: false
 
     # Should Matrix m.notice-type messages be bridged?
     bridge_notices: true