diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index bf5ba7323..daa358cf2 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -1319,10 +1319,11 @@ forumTopicIcon color:int32 custom_emoji_id:int64 = ForumTopicIcon; //@icon Icon of the topic //@creation_date Date the topic was created //@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_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 -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 //@info Basic information about the topic diff --git a/td/telegram/ForumTopicInfo.cpp b/td/telegram/ForumTopicInfo.cpp index bdce4f460..b7f24db12 100644 --- a/td/telegram/ForumTopicInfo.cpp +++ b/td/telegram/ForumTopicInfo.cpp @@ -62,9 +62,9 @@ td_api::object_ptr ForumTopicInfo::get_forum_topic_info_ } auto creator_id = get_message_sender_object_const(td, creator_dialog_id_, "get_forum_topic_info_object"); - return td_api::make_object(top_thread_message_id_.get(), title_, - icon_.get_forum_topic_icon_object(), creation_date_, - std::move(creator_id), is_outgoing_, is_closed_, is_hidden_); + return td_api::make_object( + top_thread_message_id_.get(), title_, icon_.get_forum_topic_icon_object(), creation_date_, std::move(creator_id), + top_thread_message_id_ == MessageId(ServerMessageId(1)), is_outgoing_, is_closed_, is_hidden_); } bool operator==(const ForumTopicInfo &lhs, const ForumTopicInfo &rhs) {