Telegram Webhookによるボット操作機能を追加(課題の追加・完了・一覧・スヌーズ対応)
This commit is contained in:
1 parent
c7f4c40964
commit
bd600c24c9
10 files changed
+812
-20
No files matched your search
@@ -17,6 +17,10 @@ func main() {
|
||||
|
||||
cfg := config.Load(*configPath)
|
||||
|
||||
if cfg.Notification.TelegramBotToken != "" && cfg.Notification.TelegramWebhookSecret == "" {
|
||||
log.Fatal("telegram_bot_token is set but telegram_webhook_secret is not set — refusing to start with unauthenticated webhook endpoint")
|
||||
}
|
||||
|
||||
log.Printf("Connecting to database (driver: %s)", cfg.Database.Driver)
|
||||
if err := database.Connect(cfg.Database, cfg.Debug); err != nil {
|
||||
log.Fatalf("Failed to connect to database: %v", err)
|
||||
|
||||
Reference in new issue
Block a user