UNPKG

@jackdbd/notifications

Version:

Functions used to send notifications to various channels (Telegram, email, etc)

24 lines (17 loc) 654 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@jackdbd/notifications](./notifications.md) &gt; [sendTelegramMessage](./notifications.sendtelegrammessage.md) ## sendTelegramMessage variable Send a text message to a Telegram chat, using the Telegram API. https://core.telegram.org/bots/api\#sendmessage <b>Signature:</b> ```typescript send: ({ chat_id, text, token }: Config, options?: Options) => Promise<{ delivered: boolean; message: string; delivered_at?: undefined; } | { delivered: boolean; delivered_at: string; message: string; }> ```