feat: Add Telegram push hook functionality and configuration options

- Add "tgChatId" and "tgBotToken" fields to configuration files
- Modify "config.go" to include new configuration fields
- Implement Telegram push hook functionality in "telegram_push.go"
- Add test file "telegram_push_test.go" to test Telegram push hook functionality
This commit is contained in:
J3n5en
2023-08-28 14:38:09 +08:00
parent 6afd95d82c
commit f2a642bf79
7 changed files with 127 additions and 0 deletions
+2
View File
@@ -12,6 +12,8 @@
"weChatPushSecret": "",
"weChatPushTemplateId": "",
"weChatPushUserId": "",
"tgChatId": "",
"tgBotToken": "",
"isInit": true,
"httpsEnabled": 2
}