10 lines
243 B
TypeScript
10 lines
243 B
TypeScript
import { bot } from './telegram';
|
|
|
|
export async function notifyByTelegramId(telegramId: string | undefined, message: string) {
|
|
if (!telegramId) return;
|
|
|
|
await bot.telegram.sendMessage(telegramId, message, {
|
|
parse_mode: 'HTML',
|
|
});
|
|
}
|