Skip to content

Commit 1a8fd46

Browse files
fix: telegram endpoint
1 parent df3c64b commit 1a8fd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/endpoints/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func SenderFactory(kind string, config map[string]string) (Sender, error) {
6363
return nil, fmt.Errorf("Telegram 'chat_id' empty")
6464
}
6565

66-
return NewTelegram(chatID, token), nil
66+
return NewTelegram(token, chatID), nil
6767
case "shoutrrr":
6868
router, err := shoutrrr.CreateSender(strings.Split(config["urls"], "\n")...)
6969
if err != nil {

0 commit comments

Comments
 (0)