diff --git a/lib/TelegramClient.ts b/lib/TelegramClient.ts index 45c328b..c3be2c5 100644 --- a/lib/TelegramClient.ts +++ b/lib/TelegramClient.ts @@ -22,4 +22,13 @@ export class TelegramClient { ): Promise { await this.telegram.sendMessage(chatId, text) } + + public async sendMarkdown( + chatId: string | number, + markdown: string, + ): Promise { + await this.telegram.sendMessage(chatId, markdown, { + parse_mode: 'Markdown', + }) + } }