diff options
author | 2023-09-10 11:22:32 -0700 | |
---|---|---|
committer | 2023-09-10 12:25:39 -0700 | |
commit | cb228e73ada44c4641bf92d61c274a6d18dda69c (patch) | |
tree | 7f3d5cfb07f30cd29634fadf32645df74d4a2326 /internal/template/templates | |
parent | d33db40b39fd857b5f10d922090c128e14413c1b (diff) | |
download | v2-cb228e73ada44c4641bf92d61c274a6d18dda69c.tar.gz v2-cb228e73ada44c4641bf92d61c274a6d18dda69c.tar.zst v2-cb228e73ada44c4641bf92d61c274a6d18dda69c.zip |
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
Diffstat (limited to 'internal/template/templates')
-rw-r--r-- | internal/template/templates/views/integrations.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/template/templates/views/integrations.html b/internal/template/templates/views/integrations.html index 14b7728e..7010dc58 100644 --- a/internal/template/templates/views/integrations.html +++ b/internal/template/templates/views/integrations.html @@ -328,6 +328,17 @@ <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label> <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false"> + <label for="form-telegram-topic-id">{{ t "form.integration.telegram_topic_id" }}</label> + <input type="number" name="telegram_bot_topic_id" id="form-telegram-topic-id" {{ if .form.TelegramBotTopicID }}value="{{ .form.TelegramBotTopicID }}"{{ end }}> + + <label> + <input type="checkbox" name="telegram_bot_disable_web_page_preview" value="1" {{ if .form.TelegramBotDisableWebPagePreview }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_web_page_preview" }} + </label> + + <label> + <input type="checkbox" name="telegram_bot_disable_notification" value="1" {{ if .form.TelegramBotDisableNotification }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_notification" }} + </label> + <div class="buttons"> <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button> </div> |