mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
feat: add method for sending markdown
This commit is contained in:
parent
51e669e699
commit
9be7bdc868
@ -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',
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user