feat: now support Telegram bot

This commit is contained in:
JustSong
2022-12-21 18:33:00 +08:00
parent c67e639f26
commit a36d21d18e
5 changed files with 99 additions and 1 deletions
+3
View File
@@ -392,6 +392,7 @@ func UpdateSelf(c *gin.Context) {
})
return
}
// White list mode. For safe :)
cleanUser := model.User{
Id: c.GetInt("id"),
Username: user.Username,
@@ -417,6 +418,8 @@ func UpdateSelf(c *gin.Context) {
BarkServer: user.BarkServer,
BarkSecret: user.BarkSecret,
ClientSecret: user.ClientSecret,
TelegramBotToken: user.TelegramBotToken,
TelegramChatId: user.TelegramChatId,
}
channel.TokenStoreUpdateUser(&cleanUser, originUser)