We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdefc37 commit c7f741bCopy full SHA for c7f741b
telegram/query/cached/compute_hash.go
@@ -64,3 +64,18 @@ func (s *AccountGetSavedMusicIDs) computeHash(v *tg.AccountSavedMusicIDs) int64
64
65
return h.Sum()
66
}
67
+
68
+func (s *PaymentsGetStarGiftActiveAuctions) computeHash(v *tg.PaymentsStarGiftActiveAuctions) int64 {
69
+ auctions := v.Auctions
70
71
+ sort.SliceStable(auctions, func(i, j int) bool {
72
+ return auctions[i].GetGift().GetID() < auctions[j].GetGift().GetID()
73
+ })
74
75
+ h := hasher.Hasher{}
76
+ for _, auction := range auctions {
77
+ h.Update(uint32(auction.GetGift().GetID()))
78
+ }
79
80
+ return h.Sum()
81
+}
0 commit comments