Skip to content

Commit

Permalink
Update cache.go
Browse files Browse the repository at this point in the history
kek type issue happens when coding from gh
  • Loading branch information
AmarnathCJD authored Feb 20, 2023
1 parent f345c0d commit f49364d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f49364d

Please sign in to comment.