Add td_api::chatEventEmojiStatusChanged.
This commit is contained in:
parent
6b85c09d14
commit
299b87c524
@ -4326,6 +4326,9 @@ chatEventBackgroundChanged old_background:chatBackground new_background:chatBack
|
||||
//@description The chat description was changed @old_description Previous chat description @new_description New chat description
|
||||
chatEventDescriptionChanged old_description:string new_description:string = ChatEventAction;
|
||||
|
||||
//@description The chat emoji status was changed @old_emoji_status Previous emoji status; may be null if none @new_emoji_status New emoji status; may be null if none
|
||||
chatEventEmojiStatusChanged old_emoji_status:emojiStatus new_emoji_status:emojiStatus = ChatEventAction;
|
||||
|
||||
//@description The linked chat of a supergroup was changed @old_linked_chat_id Previous supergroup linked chat identifier @new_linked_chat_id New supergroup linked chat identifier
|
||||
chatEventLinkedChatChanged old_linked_chat_id:int53 new_linked_chat_id:int53 = ChatEventAction;
|
||||
|
||||
|
@ -458,8 +458,13 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
|
||||
return td_api::make_object<td_api::chatEventBackgroundChanged>(
|
||||
old_background_info.get_chat_background_object(td), new_background_info.get_chat_background_object(td));
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionChangeEmojiStatus::ID:
|
||||
return nullptr;
|
||||
case telegram_api::channelAdminLogEventActionChangeEmojiStatus::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeEmojiStatus>(action_ptr);
|
||||
auto old_emoji_status = EmojiStatus(std::move(action->prev_value_));
|
||||
auto new_emoji_status = EmojiStatus(std::move(action->new_value_));
|
||||
return td_api::make_object<td_api::chatEventEmojiStatusChanged>(old_emoji_status.get_emoji_status_object(),
|
||||
new_emoji_status.get_emoji_status_object());
|
||||
}
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user