feat: add method for sending markdown

This commit is contained in:
Igor Kamyshev 2019-07-18 14:32:33 +03:00
parent 51e669e699
commit 9be7bdc868

View File

@ -22,4 +22,13 @@ export class TelegramClient {
): Promise<void> { ): Promise<void> {
await this.telegram.sendMessage(chatId, text) await this.telegram.sendMessage(chatId, text)
} }
public async sendMarkdown(
chatId: string | number,
markdown: string,
): Promise<void> {
await this.telegram.sendMessage(chatId, markdown, {
parse_mode: 'Markdown',
})
}
} }