rpc: add android startup and messaging compat
(cherry picked from commit d718593156cc7310105007f37645948c17637e0a)
This commit is contained in:
parent
fc01346160
commit
b4e47c894f
11 changed files with 184 additions and 2 deletions
|
|
@ -183,6 +183,12 @@ func (r *Router) registerMessages(d *tg.ServerDispatcher) {
|
|||
d.OnMessagesGetStickers(func(ctx context.Context, req *tg.MessagesGetStickersRequest) (tg.MessagesStickersClass, error) {
|
||||
return tdesktop.Stickers(), nil
|
||||
})
|
||||
d.OnMessagesGetArchivedStickers(func(ctx context.Context, req *tg.MessagesGetArchivedStickersRequest) (*tg.MessagesArchivedStickers, error) {
|
||||
return &tg.MessagesArchivedStickers{
|
||||
Count: 0,
|
||||
Sets: []tg.StickerSetCoveredClass{},
|
||||
}, nil
|
||||
})
|
||||
d.OnMessagesGetStickerSet(r.onMessagesGetStickerSet)
|
||||
d.OnMessagesGetEmojiGroups(func(ctx context.Context, hash int) (tg.MessagesEmojiGroupsClass, error) {
|
||||
return tdesktop.EmojiGroups(), nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue