Process stickerSetFullCovered.
This commit is contained in:
parent
903236bf78
commit
585191bb6f
@ -57,13 +57,13 @@ bool TD_TL_writer::is_default_constructor_generated(const tl::tl_combinator *t,
|
||||
bool TD_TL_writer::is_full_constructor_generated(const tl::tl_combinator *t, bool can_be_parsed,
|
||||
bool can_be_stored) const {
|
||||
return tl_name == "td_api" || tl_name == "TdApi" || can_be_stored || t->name == "phone.groupParticipants" ||
|
||||
t->name == "user" || t->name == "userProfilePhoto" || t->name == "channelForbidden" ||
|
||||
t->name == "user" || t->name == "userProfilePhoto" || t->name == "channelForbidden" || t->name == "message" ||
|
||||
t->name == "photoSizeEmpty" || t->name == "photoSize" || t->name == "photoCachedSize" ||
|
||||
t->name == "document" || t->name == "updateDeleteMessages" || t->name == "updateEditChannelMessage" ||
|
||||
t->name == "encryptedChatWaiting" || t->name == "encryptedChatRequested" || t->name == "encryptedChat" ||
|
||||
t->name == "langPackString" || t->name == "langPackStringPluralized" || t->name == "langPackStringDeleted" ||
|
||||
t->name == "peerUser" || t->name == "peerChat" || t->name == "updateServiceNotification" ||
|
||||
t->name == "updateNewMessage" || t->name == "message" || t->name == "updateChannelTooLong";
|
||||
t->name == "updateNewMessage" || t->name == "updateChannelTooLong" || t->name == "messages.stickerSet";
|
||||
}
|
||||
|
||||
int TD_TL_writer::get_storer_type(const tl::tl_combinator *t, const std::string &storer_name) const {
|
||||
|
@ -3238,8 +3238,12 @@ StickerSetId StickersManager::on_get_sticker_set_covered(tl_object_ptr<telegram_
|
||||
|
||||
break;
|
||||
}
|
||||
case telegram_api::stickerSetFullCovered::ID:
|
||||
return StickerSetId();
|
||||
case telegram_api::stickerSetFullCovered::ID: {
|
||||
auto set = move_tl_object_as<telegram_api::stickerSetFullCovered>(set_ptr);
|
||||
auto sticker_set = telegram_api::make_object<telegram_api::messages_stickerSet>(
|
||||
std::move(set->set_), std::move(set->packs_), std::move(set->documents_));
|
||||
return on_get_messages_sticker_set(StickerSetId(), std::move(sticker_set), is_changed, source);
|
||||
}
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user