diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-18 00:40:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-18 00:40:59 +0700 |
| commit | 51d14a2686c8ec0dbd876312dd76eec54df0d617 (patch) | |
| tree | 80b186f4ae0f002a72391cbdb6f5e7d47b59ca76 /cmd/kamusku-telegram-bot/main.go | |
| parent | bea7551fd914534c4f3a49fbb980cc23b559f155 (diff) | |
| download | kamusku-51d14a2686c8ec0dbd876312dd76eec54df0d617.tar.xz | |
all: move the deployment to VPS
Using AppEngine is not flexible and hard to debug.
For example, if we changes the dependecies on module "pakakeh.go"
there is no way to deploy it manually without pusing new commit to
"pakakeh.go" and update the go.mod manually.
Diffstat (limited to 'cmd/kamusku-telegram-bot/main.go')
| -rw-r--r-- | cmd/kamusku-telegram-bot/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/kamusku-telegram-bot/main.go b/cmd/kamusku-telegram-bot/main.go index c9628c8..cd0151c 100644 --- a/cmd/kamusku-telegram-bot/main.go +++ b/cmd/kamusku-telegram-bot/main.go @@ -16,8 +16,13 @@ import ( func main() { log.SetPrefix("kamusku-telegram-bot: ") + var ( + tgToken = `1121465148:AAE6Yf0YevYcyC--eCZyMqSpVia-pK5iFM4` + tgWebhook = `https://kamusku.kilabit.info/telegram/webhook` + ) + // Use the token and Webhook URL from environment variables. - tgbot, err := kamusd.NewTelegramBot("", "") + tgbot, err := kamusd.NewTelegramBot(tgToken, tgWebhook) if err != nil { log.Fatal(err) } |
