From efac11a3ef6bec9ba15feb9fa867e77567fcb6aa Mon Sep 17 00:00:00 2001 From: Maik Brenke Date: Fri, 18 Jun 2021 10:44:10 +0200 Subject: [PATCH] fix: use strconv.ParseInt instead of strconv.Atoi --- service/telegram/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/telegram/telegram.go b/service/telegram/telegram.go index ecd5c21..502b734 100644 --- a/service/telegram/telegram.go +++ b/service/telegram/telegram.go @@ -78,7 +78,7 @@ All configuration options are also available via environment variables.`, if len(v) <= 0 { return helpers.ErrChannel } - k, errStr := strconv.Atoi(v) + k, errStr := strconv.ParseInt(v, 10, 64) if errStr != nil { return errStr }