commands/imagepack: catch both errors

(why are there two with the same description?)
This commit is contained in:
Tulir Asokan
2026-03-30 12:58:04 +03:00
parent 9b7ee5e2c3
commit 606bf92ab1
+1 -1
View File
@@ -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)