mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 04:03:16 +08:00
feat(telegram): deliver native rich messages
This commit is contained in:
parent
dd66f5cbe1
commit
d7f4cf03ab
7 changed files with 1588 additions and 170 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue