mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-19 10:39:26 +01:00
Add Message.general_forum_topic_hidden/general_forum_topic_unhidden.
This commit is contained in:
parent
3704082f2a
commit
d19413f8e6
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user