Add Message.general_forum_topic_hidden/general_forum_topic_unhidden.

This commit is contained in:
levlam 2022-12-29 17:53:55 +03:00
parent 3704082f2a
commit d19413f8e6

View File

@ -2071,9 +2071,12 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
break;
}
case td_api::messageForumTopicIsHiddenToggled::ID: {
// auto content = static_cast<const td_api::messageForumTopicIsHiddenToggled *>(message_->content.get());
// temporary; the topic is closed when it is hidden or unhidden
object("forum_topic_closed", JsonEmptyObject());
auto content = static_cast<const td_api::messageForumTopicIsHiddenToggled *>(message_->content.get());
if (content->is_hidden_) {
object("general_forum_topic_hidden", JsonEmptyObject());
} else {
object("general_forum_topic_unhidden", JsonEmptyObject());
}
break;
}
case td_api::messagePinMessage::ID: {