From 9576f48c5b4c80776e8ef7cc367a4a9a64574af5 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 8 Oct 2024 08:21:23 -0600 Subject: [PATCH] stickers: strip filename Signed-off-by: Sumner Evans --- pkg/connector/tomatrix.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/connector/tomatrix.go b/pkg/connector/tomatrix.go index 8bf1adb2..469d24eb 100644 --- a/pkg/connector/tomatrix.go +++ b/pkg/connector/tomatrix.go @@ -313,6 +313,11 @@ func (c *TelegramClient) convertMediaRequiringUpload(ctx context.Context, portal } } + // Strip filename if it's a sticker + if isSticker { + content.FileName = "" + } + if isVideoGif { extraInfo["fi.mau.gif"] = true extraInfo["fi.mau.loop"] = true