Merge branch 'canary' into gotify-notifications

This commit is contained in:
Mauricio Siu
2025-01-18 17:23:35 -06:00
committed by GitHub
14 changed files with 134 additions and 50 deletions

View File

@@ -56,6 +56,10 @@ export const sendDiscordNotification = async (
export const sendTelegramNotification = async (
connection: typeof telegram.$inferInsert,
messageText: string,
inlineButton?: {
text: string;
url: string;
}[][]
) => {
try {
const url = `https://api.telegram.org/bot${connection.botToken}/sendMessage`;
@@ -67,6 +71,9 @@ export const sendTelegramNotification = async (
text: messageText,
parse_mode: "HTML",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: inlineButton,
},
}),
});
} catch (err) {