feat: add Telegram album purchase bot

This commit is contained in:
2026-08-21 18:07:50 +03:30
parent 9478aa319f
commit 1e7b752532
21 changed files with 1399 additions and 459 deletions
+12
View File
@@ -0,0 +1,12 @@
export {};
import { registerTelegramWebhook } from "../lib/telegram";
try {
await registerTelegramWebhook();
const appUrl = process.env.NEXT_PUBLIC_APP_URL || "https://podzahr.com";
console.log(`${appUrl}/api/telegram/webhook registered with Telegram`);
} catch (error) {
console.error(error instanceof Error ? error.message : error);
process.exit(1);
}