feat: now client part supports multiple channels for the same type (#50)

This commit is contained in:
JustSong
2023-05-06 10:15:18 +08:00
parent 3a8d625201
commit 91725aeba7
16 changed files with 1070 additions and 131 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ type telegramMessageResponse struct {
func SendTelegramMessage(message *model.Message, user *model.User, channel_ *model.Channel) error {
// https://core.telegram.org/bots/api#sendmessage
messageRequest := telegramMessageRequest{
ChatId: channel_.AppId,
ChatId: channel_.AccountId,
Text: message.Content,
ParseMode: "markdown",
}