diff options
Diffstat (limited to 'internal/storage/integration.go')
-rw-r--r-- | internal/storage/integration.go | 70 |
1 files changed, 37 insertions, 33 deletions
diff --git a/internal/storage/integration.go b/internal/storage/integration.go index 8f2587c2..7cc3706c 100644 --- a/internal/storage/integration.go +++ b/internal/storage/integration.go @@ -151,6 +151,7 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) { telegram_bot_topic_id, telegram_bot_disable_web_page_preview, telegram_bot_disable_notification, + telegram_bot_disable_buttons, linkding_enabled, linkding_url, linkding_api_key, @@ -223,6 +224,7 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) { &integration.TelegramBotTopicID, &integration.TelegramBotDisableWebPagePreview, &integration.TelegramBotDisableNotification, + &integration.TelegramBotDisableButtons, &integration.LinkdingEnabled, &integration.LinkdingURL, &integration.LinkdingAPIKey, @@ -295,40 +297,41 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error { telegram_bot_topic_id=$30, telegram_bot_disable_web_page_preview=$31, telegram_bot_disable_notification=$32, - espial_enabled=$33, - espial_url=$34, - espial_api_key=$35, - espial_tags=$36, - linkding_enabled=$37, - linkding_url=$38, - linkding_api_key=$39, - linkding_tags=$40, - linkding_mark_as_unread=$41, - matrix_bot_enabled=$42, - matrix_bot_user=$43, - matrix_bot_password=$44, - matrix_bot_url=$45, - matrix_bot_chat_id=$46, - notion_enabled=$47, - notion_token=$48, - notion_page_id=$49, - readwise_enabled=$50, - readwise_api_key=$51, - apprise_enabled=$52, - apprise_url=$53, - apprise_services_url=$54, - shiori_enabled=$55, - shiori_url=$56, - shiori_username=$57, - shiori_password=$58, - shaarli_enabled=$59, - shaarli_url=$60, - shaarli_api_secret=$61, - webhook_enabled=$62, - webhook_url=$63, - webhook_secret=$64 + telegram_bot_disable_buttons=$33, + espial_enabled=$34, + espial_url=$35, + espial_api_key=$36, + espial_tags=$37, + linkding_enabled=$38, + linkding_url=$39, + linkding_api_key=$40, + linkding_tags=$41, + linkding_mark_as_unread=$42, + matrix_bot_enabled=$43, + matrix_bot_user=$44, + matrix_bot_password=$45, + matrix_bot_url=$46, + matrix_bot_chat_id=$47, + notion_enabled=$48, + notion_token=$49, + notion_page_id=$50, + readwise_enabled=$51, + readwise_api_key=$52, + apprise_enabled=$53, + apprise_url=$54, + apprise_services_url=$55, + shiori_enabled=$56, + shiori_url=$57, + shiori_username=$58, + shiori_password=$59, + shaarli_enabled=$60, + shaarli_url=$61, + shaarli_api_secret=$62, + webhook_enabled=$63, + webhook_url=$64, + webhook_secret=$65 WHERE - user_id=$65 + user_id=$66 ` _, err := s.db.Exec( query, @@ -364,6 +367,7 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error { integration.TelegramBotTopicID, integration.TelegramBotDisableWebPagePreview, integration.TelegramBotDisableNotification, + integration.TelegramBotDisableButtons, integration.EspialEnabled, integration.EspialURL, integration.EspialAPIKey, |