From f49364db87c5b3e33518c2fc0c805c44b49ff0fb Mon Sep 17 00:00:00 2001 From: Amarnath C Date: Mon, 20 Feb 2023 20:28:59 +0530 Subject: [PATCH] Update cache.go kek type issue happens when coding from gh --- telegram/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/cache.go b/telegram/cache.go index f85118e3..be295039 100644 --- a/telegram/cache.go +++ b/telegram/cache.go @@ -122,7 +122,7 @@ func (c *CACHE) getChannelPeer(channelID int64) (InputChannel, error) { func (c *CACHE) GetInputPeer(peerID int64) (InputPeer, error) { if strings.HasPrefix(strconv.Itoa(int(peerID)), "-100") { - peerID = math.Abs(peerID) - 1000000000000 + peerID = int64(math.Abs(float64(peerID))) - 1000000000000 } for _, user := range c.InputPeers.InputUsers { if user.UserID == peerID {