fix: harden channel rights and sticker compatibility
Co-authored-by: HSgram <3013954224@qq.com>
This commit is contained in:
parent
6867d201ed
commit
599453a3c4
33 changed files with 1520 additions and 130 deletions
|
|
@ -20,6 +20,7 @@ func (r *Router) registerMessages(d *tg.ServerDispatcher) {
|
|||
d.OnMessagesGetMaskStickers(r.onMessagesGetMaskStickers)
|
||||
d.OnMessagesGetFeaturedStickers(r.onMessagesGetFeaturedStickers)
|
||||
d.OnMessagesGetFeaturedEmojiStickers(r.onMessagesGetFeaturedEmojiStickers)
|
||||
d.OnMessagesGetOldFeaturedStickers(r.onMessagesGetOldFeaturedStickers)
|
||||
d.OnMessagesGetRecentStickers(r.onMessagesGetRecentStickers)
|
||||
d.OnMessagesGetFavedStickers(r.onMessagesGetFavedStickers)
|
||||
d.OnMessagesGetSavedGifs(r.onMessagesGetSavedGifs)
|
||||
|
|
@ -109,10 +110,7 @@ func (r *Router) registerMessages(d *tg.ServerDispatcher) {
|
|||
d.OnMessagesGetEmojiStatusGroups(func(ctx context.Context, hash int) (tg.MessagesEmojiGroupsClass, error) {
|
||||
return tdesktop.EmojiStatusGroups(), nil
|
||||
})
|
||||
d.OnMessagesGetEmojiStickerGroups(func(ctx context.Context, hash int) (tg.MessagesEmojiGroupsClass, error) {
|
||||
// 自定义 emoji 贴纸的分类(Premium);telesrv 未 seed custom-emoji 集,保持空。
|
||||
return &tg.MessagesEmojiGroupsNotModified{}, nil
|
||||
})
|
||||
d.OnMessagesGetEmojiStickerGroups(r.onMessagesGetEmojiStickerGroups)
|
||||
d.OnMessagesGetEmojiProfilePhotoGroups(func(ctx context.Context, hash int) (tg.MessagesEmojiGroupsClass, error) {
|
||||
return tdesktop.EmojiProfilePhotoGroups(), nil
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue