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 ae08ba7 commit 78594ecCopy full SHA for 78594ec
telegram/query/cached/compute_hash.go
@@ -34,3 +34,18 @@ func (s *MessagesGetQuickReplies) computeHash(v *tg.MessagesQuickReplies) int64
34
35
return h.Sum()
36
}
37
+
38
+func (s *PaymentsGetStarGiftCollections) computeHash(v *tg.PaymentsStarGiftCollections) int64 {
39
+ collections := v.Collections
40
41
+ sort.SliceStable(collections, func(i, j int) bool {
42
+ return collections[i].CollectionID < collections[j].CollectionID
43
+ })
44
45
+ h := hasher.Hasher{}
46
+ for _, collection := range collections {
47
+ h.Update(uint32(collection.CollectionID))
48
+ }
49
50
+ return h.Sum()
51
+}
0 commit comments