test: remove redundant sticker thread id assertion

This commit is contained in:
Peter Steinberger
2026-02-16 06:51:50 +00:00
parent 425c715a05
commit 67aa7eefe5

View File

@@ -1060,28 +1060,6 @@ describe("sendStickerTelegram", () => {
}
});
it("includes message_thread_id for forum topic messages", async () => {
const chatId = "-1001234567890";
const fileId = "CAACAgIAAxkBAAI...sticker_file_id";
const sendSticker = vi.fn().mockResolvedValue({
message_id: 101,
chat: { id: chatId },
});
const api = { sendSticker } as unknown as {
sendSticker: typeof sendSticker;
};
await sendStickerTelegram(chatId, fileId, {
token: "tok",
api,
messageThreadId: 271,
});
expect(sendSticker).toHaveBeenCalledWith(chatId, fileId, {
message_thread_id: 271,
});
});
it("retries sticker sends without message_thread_id when thread is missing", async () => {
const chatId = "123";
const threadErr = new Error("400: Bad Request: message thread not found");