feat: use Telegram native Rich Message for assistant replies
Co-authored-by: MuziIsabel <MuziIsabel@users.noreply.github.com>
This commit is contained in:
@@ -82,6 +82,16 @@ export class TelegramClient {
|
||||
}
|
||||
return this.call('sendMessage', body);
|
||||
}
|
||||
async sendRichMessage(chatId, markdown) {
|
||||
const body = {
|
||||
chat_id: chatId,
|
||||
rich_message: {
|
||||
markdown,
|
||||
skip_entity_detection: true,
|
||||
},
|
||||
};
|
||||
return this.call('sendRichMessage', body);
|
||||
}
|
||||
async sendChatAction(chatId, action) {
|
||||
return this.call('sendChatAction', { chat_id: chatId, action });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user