commands/imagepack: also ignore re-encoding errors

This commit is contained in:
Tulir Asokan
2026-03-29 22:06:56 +03:00
parent acf716c031
commit 58d99a806a

View File

@@ -374,7 +374,8 @@ func (t *TelegramClient) synchronizeEmojiPack(ctx context.Context, ce *commands.
}
item, saveCache, err := t.synchronizeEmoji(ctx, shortcode, img, isEmojiPack)
if err != nil {
return "", fmt.Errorf("failed to synchronize emoji %s: %w", shortcode, err)
ce.Reply("Failed to reupload %s: %v", shortcode, err)
continue
}
rawNewSet, err := t.client.API().StickersAddStickerToSet(ctx, &tg.StickersAddStickerToSetRequest{
Stickerset: inputSet,