@jackdbd/notifications
Version:
Functions used to send notifications to various channels (Telegram, email, etc)
24 lines (17 loc) • 654 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@jackdbd/notifications](./notifications.md) > [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;
}>
```