Skip to content

Commit 325ddf1

Browse files
authored
Merge pull request #1631 from gotd/feat/update-schema
Update Telegram schema to the latest layer
2 parents cd7d9a8 + c7f741b commit 325ddf1

File tree

83 files changed

+13128
-822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+13128
-822
lines changed

_schema/tdesktop.tl

Lines changed: 95 additions & 29 deletions
Large diffs are not rendered by default.

_schema/telegram.tl

Lines changed: 95 additions & 29 deletions
Large diffs are not rendered by default.

telegram/query/cached/compute_hash.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,18 @@ func (s *AccountGetSavedMusicIDs) computeHash(v *tg.AccountSavedMusicIDs) int64
6464

6565
return h.Sum()
6666
}
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+
}

telegram/query/cached/queries.gen.go

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tg/tl_auction_bid_level_gen.go

Lines changed: 215 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tg/tl_auction_bid_level_slices_gen.go

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)