diff options
Diffstat (limited to 'internal/storage/integration.go')
-rw-r--r-- | internal/storage/integration.go | 78 |
1 files changed, 45 insertions, 33 deletions
diff --git a/internal/storage/integration.go b/internal/storage/integration.go index 2c1e85a2..cf02b4af 100644 --- a/internal/storage/integration.go +++ b/internal/storage/integration.go @@ -148,6 +148,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) { telegram_bot_enabled, telegram_bot_token, telegram_bot_chat_id, + telegram_bot_topic_id, + telegram_bot_disable_web_page_preview, + telegram_bot_disable_notification, linkding_enabled, linkding_url, linkding_api_key, @@ -217,6 +220,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) { &integration.TelegramBotEnabled, &integration.TelegramBotToken, &integration.TelegramBotChatID, + &integration.TelegramBotTopicID, + &integration.TelegramBotDisableWebPagePreview, + &integration.TelegramBotDisableNotification, &integration.LinkdingEnabled, &integration.LinkdingURL, &integration.LinkdingAPIKey, @@ -286,40 +292,43 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error { telegram_bot_enabled=$27, telegram_bot_token=$28, telegram_bot_chat_id=$29, - espial_enabled=$30, - espial_url=$31, - espial_api_key=$32, - espial_tags=$33, - linkding_enabled=$34, - linkding_url=$35, - linkding_api_key=$36, - linkding_tags=$37, - linkding_mark_as_unread=$38, - matrix_bot_enabled=$39, - matrix_bot_user=$40, - matrix_bot_password=$41, - matrix_bot_url=$42, - matrix_bot_chat_id=$43, - notion_enabled=$44, - notion_token=$45, - notion_page_id=$46, - readwise_enabled=$47, - readwise_api_key=$48, - apprise_enabled=$49, - apprise_url=$50, - apprise_services_url=$51, - shiori_enabled=$52, - shiori_url=$53, - shiori_username=$54, - shiori_password=$55, - shaarli_enabled=$56, - shaarli_url=$57, - shaarli_api_secret=$58, - webhook_enabled=$59, - webhook_url=$60, - webhook_secret=$61 + 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 WHERE - user_id=$62 + user_id=$65 ` _, err := s.db.Exec( query, @@ -352,6 +361,9 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error { integration.TelegramBotEnabled, integration.TelegramBotToken, integration.TelegramBotChatID, + integration.TelegramBotTopicID, + integration.TelegramBotDisableWebPagePreview, + integration.TelegramBotDisableNotification, integration.EspialEnabled, integration.EspialURL, integration.EspialAPIKey, |