Add td_api::chatEventCustomEmojiStickerSetChanged.
This commit is contained in:
parent
64635aefe1
commit
9400447fde
@ -4503,6 +4503,9 @@ chatEventSlowModeDelayChanged old_slow_mode_delay:int32 new_slow_mode_delay:int3
|
||||
//@description The supergroup sticker set was changed @old_sticker_set_id Previous identifier of the chat sticker set; 0 if none @new_sticker_set_id New identifier of the chat sticker set; 0 if none
|
||||
chatEventStickerSetChanged old_sticker_set_id:int64 new_sticker_set_id:int64 = ChatEventAction;
|
||||
|
||||
//@description The supergroup sticker set with allowed custom emoji was changed @old_sticker_set_id Previous identifier of the chat sticker set; 0 if none @new_sticker_set_id New identifier of the chat sticker set; 0 if none
|
||||
chatEventCustomEmojiStickerSetChanged old_sticker_set_id:int64 new_sticker_set_id:int64 = ChatEventAction;
|
||||
|
||||
//@description The chat title was changed @old_title Previous chat title @new_title New chat title
|
||||
chatEventTitleChanged old_title:string new_title:string = ChatEventAction;
|
||||
|
||||
|
@ -227,7 +227,15 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
|
||||
new_sticker_set_id.get());
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionChangeEmojiStickerSet::ID: {
|
||||
return nullptr;
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeEmojiStickerSet>(action_ptr);
|
||||
auto old_sticker_set_id = td->stickers_manager_->add_sticker_set(std::move(action->prev_stickerset_));
|
||||
auto new_sticker_set_id = td->stickers_manager_->add_sticker_set(std::move(action->new_stickerset_));
|
||||
if (!old_sticker_set_id.is_valid() || !new_sticker_set_id.is_valid()) {
|
||||
LOG(ERROR) << "Skip " << to_string(action);
|
||||
return nullptr;
|
||||
}
|
||||
return td_api::make_object<td_api::chatEventCustomEmojiStickerSetChanged>(old_sticker_set_id.get(),
|
||||
new_sticker_set_id.get());
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionTogglePreHistoryHidden::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionTogglePreHistoryHidden>(action_ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user