commands/imagepack: fail when reaching pack size limit

This commit is contained in:
Tulir Asokan
2026-03-29 22:33:02 +03:00
parent e4195fadb4
commit 9b7ee5e2c3
+3
View File
@@ -391,6 +391,9 @@ func (t *TelegramClient) synchronizeEmojiPack(ctx context.Context, ce *commands.
Sticker: *item,
})
if err != nil {
if tgerr.Is(err, tg.ErrStickerpackStickersTooMuch) {
return "", err
}
ce.Reply("Failed to add %s/%d to pack: %v", shortcode, item.Document.(*tg.InputDocument).ID, err)
continue
}