Fix getting of Great Minds by ID.
GitOrigin-RevId: ca1a68ae5c3f2a0be8f0e3f0a80ee96ae7077004
This commit is contained in:
parent
896e44ac94
commit
3bb65d6ea3
@ -1710,6 +1710,11 @@ void StickersManager::on_get_messages_sticker_set(int64 sticker_set_id,
|
||||
bool is_changed) {
|
||||
LOG(INFO) << "Receive sticker set " << to_string(set);
|
||||
|
||||
if (sticker_set_id == GREAT_MINDS_SET_ID && set->set_->id_ == GREAT_MINDS_COLOR_SET_ID) {
|
||||
set->set_->id_ = GREAT_MINDS_SET_ID;
|
||||
set->set_->short_name_ = "TelegramGreatMinds";
|
||||
}
|
||||
|
||||
auto set_id = on_get_sticker_set(std::move(set->set_), is_changed);
|
||||
if (set_id == 0) {
|
||||
return;
|
||||
|
@ -244,6 +244,7 @@ class StickersManager : public Actor {
|
||||
static constexpr size_t MAX_STICKER_SET_SHORT_NAME_LENGTH = 64; // server side limit
|
||||
|
||||
static constexpr int64 GREAT_MINDS_SET_ID = 1842540969984001;
|
||||
static constexpr int64 GREAT_MINDS_COLOR_SET_ID = 151353307481243663;
|
||||
|
||||
class Sticker {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user