added full gifts support
This commit is contained in:
parent
ea5b86de8f
commit
354128c106
35 changed files with 1502 additions and 103 deletions
|
|
@ -66,5 +66,12 @@ func BuildConfig(dc int, ip string, port int, now time.Time, publicBaseURL strin
|
|||
WebfileDCID: dc,
|
||||
}
|
||||
config.SetReactionsDefault(&tg.ReactionEmoji{Emoticon: DefaultReactionEmoticon})
|
||||
// The GIF picker's trending/search panel reads this from help.getConfig's
|
||||
// typed Config (gifs_list_widget.cpp: session().serverConfig().gifSearchUsername)
|
||||
// -- NOT from help.getAppConfig's loose JSON blob, which is a separate RPC/
|
||||
// response entirely. Must match the built-in @gif system bot's username
|
||||
// (domain.GifBotUser().Username), whose inline results are served
|
||||
// synchronously in-process (see rpc.ServiceBotInlineResults).
|
||||
config.SetGifSearchUsername("gif")
|
||||
return config
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue