merge: add native Telegram rich delivery

# Conflicts:
#	lib/index.js
This commit is contained in:
xmanrui 2026-08-24 03:44:19 +08:00
commit a5c516a61c
12 changed files with 1978 additions and 184 deletions

View file

@ -170,9 +170,15 @@ test('Slack, Telegram, and Discord stream receipts retain the initial and remain
key: 'telegram-stream',
bot: telegram,
answer: 'T'.repeat(4_001),
replyTarget: { chatId: 42, replyToMessageId: 7, messageThreadId: 8 },
replyTarget: {
chatId: 42,
chatType: 'supergroup',
replyToMessageId: 7,
messageThreadId: 8,
},
});
assert.deepEqual(telegramReceipt.providerMessageIds, ['301', '302']);
assert.deepEqual(telegramReceipt.providerMessageIds, ['301']);
assert.equal(telegramReceipt.presentation, 'telegram-rich-final');
let discordId = 0;
const discord = new DiscordBotClient({