From 2b1cfae52fda5771cd357a32ebb11ebeba5ed1ba Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 29 Dec 2025 23:25:08 +0200 Subject: [PATCH] tomatrix: fix sticker metadata --- pkg/connector/tomatrix.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/connector/tomatrix.go b/pkg/connector/tomatrix.go index 11f42f3a..d3285918 100644 --- a/pkg/connector/tomatrix.go +++ b/pkg/connector/tomatrix.go @@ -22,6 +22,7 @@ import ( "encoding/binary" "fmt" "html" + "strconv" "strings" "time" @@ -422,12 +423,12 @@ func (c *TelegramClient) convertMediaRequiringUpload( content.FileName = content.Body content.Body = a.Alt } - stickerInfo := map[string]any{"alt": a.Alt, "id": document.ID} + stickerInfo := map[string]any{"alt": a.Alt, "id": strconv.FormatInt(document.ID, 10)} if setID, ok := a.Stickerset.(*tg.InputStickerSetID); ok { stickerInfo["pack"] = map[string]any{ - "id": setID.ID, - "access_hash": setID.AccessHash, + "id": strconv.FormatInt(setID.ID, 10), + "access_hash": strconv.FormatInt(setID.AccessHash, 10), } } else if shortName, ok := a.Stickerset.(*tg.InputStickerSetShortName); ok { stickerInfo["pack"] = map[string]any{