From cb228e73ada44c4641bf92d61c274a6d18dda69c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 10 Sep 2023 11:22:32 -0700 Subject: Improve Telegram integration - Remove dependency on `go-telegram-bot-api` - Add new options: optional topic ID, disable page preview, disable notifications - Add new button to go to article --- internal/database/migrations.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/database/migrations.go') diff --git a/internal/database/migrations.go b/internal/database/migrations.go index e485243b..bcd7e494 100644 --- a/internal/database/migrations.go +++ b/internal/database/migrations.go @@ -767,4 +767,13 @@ var migrations = []func(tx *sql.Tx) error{ _, err = tx.Exec(sql) return err }, + func(tx *sql.Tx) (err error) { + sql := ` + ALTER TABLE integrations ADD COLUMN telegram_bot_topic_id int; + ALTER TABLE integrations ADD COLUMN telegram_bot_disable_web_page_preview bool default 'f'; + ALTER TABLE integrations ADD COLUMN telegram_bot_disable_notification bool default 'f'; + ` + _, err = tx.Exec(sql) + return err + }, } -- cgit v1.2.3