Add forumTopicInfo.is_general.

This commit is contained in:
levlam 2022-11-30 17:01:18 +03:00
parent aef203ed05
commit 7a93fcdeb4
2 changed files with 5 additions and 4 deletions

View File

@ -1319,10 +1319,11 @@ forumTopicIcon color:int32 custom_emoji_id:int64 = ForumTopicIcon;
//@icon Icon of the topic //@icon Icon of the topic
//@creation_date Date the topic was created //@creation_date Date the topic was created
//@creator_id Identifier of the creator of the topic //@creator_id Identifier of the creator of the topic
//@is_general True, if the topic is the General topic list
//@is_outgoing True, if the topic was created by the current user //@is_outgoing True, if the topic was created by the current user
//@is_closed True, if the topic is closed //@is_closed True, if the topic is closed
//@is_hidden True, if the topic is hidden above the topic list and closed; for General topic only //@is_hidden True, if the topic is hidden above the topic list and closed; for General topic only
forumTopicInfo message_thread_id:int53 name:string icon:forumTopicIcon creation_date:int32 creator_id:MessageSender is_outgoing:Bool is_closed:Bool is_hidden:Bool = ForumTopicInfo; forumTopicInfo message_thread_id:int53 name:string icon:forumTopicIcon creation_date:int32 creator_id:MessageSender is_general:Bool is_outgoing:Bool is_closed:Bool is_hidden:Bool = ForumTopicInfo;
//@description Describes a forum topic //@description Describes a forum topic
//@info Basic information about the topic //@info Basic information about the topic

View File

@ -62,9 +62,9 @@ td_api::object_ptr<td_api::forumTopicInfo> ForumTopicInfo::get_forum_topic_info_
} }
auto creator_id = get_message_sender_object_const(td, creator_dialog_id_, "get_forum_topic_info_object"); auto creator_id = get_message_sender_object_const(td, creator_dialog_id_, "get_forum_topic_info_object");
return td_api::make_object<td_api::forumTopicInfo>(top_thread_message_id_.get(), title_, return td_api::make_object<td_api::forumTopicInfo>(
icon_.get_forum_topic_icon_object(), creation_date_, top_thread_message_id_.get(), title_, icon_.get_forum_topic_icon_object(), creation_date_, std::move(creator_id),
std::move(creator_id), is_outgoing_, is_closed_, is_hidden_); top_thread_message_id_ == MessageId(ServerMessageId(1)), is_outgoing_, is_closed_, is_hidden_);
} }
bool operator==(const ForumTopicInfo &lhs, const ForumTopicInfo &rhs) { bool operator==(const ForumTopicInfo &lhs, const ForumTopicInfo &rhs) {