From 606bf92ab16d0099ed3d4ac791b8930bfb9039e6 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 30 Mar 2026 12:58:04 +0300 Subject: [PATCH] commands/imagepack: catch both errors (why are there two with the same description?) --- pkg/connector/imagepack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/connector/imagepack.go b/pkg/connector/imagepack.go index 371257f3..30d74604 100644 --- a/pkg/connector/imagepack.go +++ b/pkg/connector/imagepack.go @@ -391,7 +391,7 @@ func (t *TelegramClient) synchronizeEmojiPack(ctx context.Context, ce *commands. Sticker: *item, }) if err != nil { - if tgerr.Is(err, tg.ErrStickerpackStickersTooMuch) { + if tgerr.Is(err, tg.ErrStickerpackStickersTooMuch) || tgerr.Is(err, tg.ErrStickersTooMuch) { return "", err } ce.Reply("Failed to add %s/%d to pack: %v", shortcode, item.Document.(*tg.InputDocument).ID, err)