connector/matrix: implement image size/dimension limits

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-11-04 09:53:04 -07:00
parent ca8aff0534
commit 827116658b
3 changed files with 46 additions and 21 deletions
+6
View File
@@ -30,6 +30,12 @@ animated_sticker:
height: 256
fps: 25 # only for webm, webp and gif (2, 5, 10, 20 or 25 recommended)
# Maximum size of image in megabytes before sending to Telegram as a document.
image_as_file_size: 10
# Maximum number of pixels in an image before sending to Telegram as a
# document. Defaults to 4096x4096 = 16777216.
image_as_file_pixels: 16777216
# Should view-once messages be disabled entirely?
disable_view_once: false
# Should disappearing messages be disabled entirely?