From 9dcf3fd3def36624f4b88a1511be0a8ee97bf33e Mon Sep 17 00:00:00 2001 From: GithubAI Date: Fri, 26 Apr 2024 21:52:55 +0530 Subject: [PATCH] Fix error handling in telegram/auth.go --- telegram/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/auth.go b/telegram/auth.go index b5f1403a..e3558f68 100755 --- a/telegram/auth.go +++ b/telegram/auth.go @@ -311,7 +311,7 @@ func (c *Client) ScrapeAppConfig(config ...*ScrapeConfig) (int32, string, bool, } if err := json.NewDecoder(respCode.Body).Decode(&result); err != nil { - return 0, "", false, err + return 0, "", false, errors.Wrap(err, "Too many requests, try again later") } code, err := conf.WebCodeCallback()