From 38d35440b0e2777f89f468e9e5594f75c5866062 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Fri, 11 Sep 2026 19:57:32 -0600 Subject: [PATCH] Preliminary configuration support for webhook updates. --- internal/settings/settings.go | 11 +++++++++++ settings.sample.toml | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/internal/settings/settings.go b/internal/settings/settings.go index b86a072..2caa9c6 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -40,6 +40,17 @@ type System struct { TimeZone string `toml:"timezone"` } +type Service struct { + Method string + Webhook *Webhook +} + +type Webhook struct { + URI string + Port int + Host string +} + type Translations struct { BaseDir string `toml:"basedir"` Active []string `toml:"active"` diff --git a/settings.sample.toml b/settings.sample.toml index 4875f88..f72021c 100644 --- a/settings.sample.toml +++ b/settings.sample.toml @@ -16,5 +16,12 @@ active = [ [system] timezone = "America/Denver" +[service] +method = "polling" # or "webhook" + [service.webhook] + uri = "https://example.com/bot" + port = 2020 + host = "::" + [chat] channels = [] \ No newline at end of file