Skip to content

Commit 24242b5

Browse files
authored
Merge pull request #49 from brenkem/fix-string-conversion
fix: use strconv.ParseInt instead of strconv.Atoi
2 parents 7186e5d + 76105ec commit 24242b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/telegram/telegram.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ All configuration options are also available via environment variables.`,
7878
if len(v) <= 0 {
7979
return helpers.ErrChannel
8080
}
81-
k, errStr := strconv.Atoi(v)
81+
k, errStr := strconv.ParseInt(v, 10, 64)
8282
if errStr != nil {
8383
return errStr
8484
}
85-
telegramSvc.AddReceivers(int64(k))
85+
telegramSvc.AddReceivers(k)
8686
}
8787

8888
notifier.UseServices(telegramSvc)

0 commit comments

Comments
 (0)