Add animated_emojis_sticker_set_name option.

GitOrigin-RevId: 22b7bd84436ad2a8deb5388dc9434f98afbb880f
This commit is contained in:
levlam 2019-11-21 20:22:05 +03:00
parent 14467e5b39
commit f5db9e48e7
2 changed files with 20 additions and 0 deletions

View File

@ -1035,6 +1035,22 @@ StickersManager::StickersManager(Td *td, ActorShared<> parent) : td_(td), parent
on_update_recent_stickers_limit(G()->shared_config().get_option_integer("recent_stickers_limit", 200));
on_update_favorite_stickers_limit(G()->shared_config().get_option_integer("favorite_stickers_limit", 5));
// add animated emoji sticker set
StickerSetId sticker_set_id;
int64 access_hash = 0;
string sticker_set_name;
if (G()->is_test_dc()) {
sticker_set_id = StickerSetId(1258816259751954);
access_hash = 4879754868529595811;
sticker_set_name = "emojies";
} else {
sticker_set_id = StickerSetId(1258816259751983);
access_hash = 5100237018658464041;
sticker_set_name = "animatedemojies";
}
add_sticker_set(sticker_set_id, access_hash);
short_name_to_sticker_set_id_.emplace(sticker_set_name, sticker_set_id);
}
void StickersManager::tear_down() {

View File

@ -4427,6 +4427,10 @@ void Td::init_options_and_network() {
if (!G()->shared_config().have_option("message_caption_length_max")) {
G()->shared_config().set_option_integer("message_caption_length_max", 1024);
}
if (!G()->shared_config().have_option("animated_emojis_sticker_set_name")) {
G()->shared_config().set_option_string("animated_emojis_sticker_set_name",
G()->is_test_dc() ? Slice("emojies") : Slice("AnimatedEmojies"));
}
init_connection_creator();