mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-01-19 07:47:31 +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;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::messageForumTopicIsHiddenToggled::ID: {
|
case td_api::messageForumTopicIsHiddenToggled::ID: {
|
||||||
// auto content = static_cast<const td_api::messageForumTopicIsHiddenToggled *>(message_->content.get());
|
auto content = static_cast<const td_api::messageForumTopicIsHiddenToggled *>(message_->content.get());
|
||||||
// temporary; the topic is closed when it is hidden or unhidden
|
if (content->is_hidden_) {
|
||||||
object("forum_topic_closed", JsonEmptyObject());
|
object("general_forum_topic_hidden", JsonEmptyObject());
|
||||||
|
} else {
|
||||||
|
object("general_forum_topic_unhidden", JsonEmptyObject());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::messagePinMessage::ID: {
|
case td_api::messagePinMessage::ID: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user