@@ -989,14 +989,16 @@ class CliClient final : public Actor {
989989
990990 struct ForumTopicId {
991991 int32 forum_topic_id = 0 ;
992+ int32 default_forum_topic_id = 0 ;
992993
993994 operator int32 () const {
994- return forum_topic_id;
995+ return forum_topic_id ? forum_topic_id : default_forum_topic_id ;
995996 }
996997 };
997998
998999 void get_args (string &args, ForumTopicId &arg) const {
9991000 arg.forum_topic_id = as_forum_topic_id (args);
1001+ arg.default_forum_topic_id = forum_topic_id_;
10001002 }
10011003
10021004 struct UserId {
@@ -5873,7 +5875,7 @@ class CliClient final : public Actor {
58735875 } else if (op == " sop" ) {
58745876 only_preview_ = as_bool (args);
58755877 } else if (op == " sfti" ) {
5876- get_args (args, forum_topic_id_ );
5878+ forum_topic_id_ = as_forum_topic_id (args);
58775879 } else if (op == " smti" ) {
58785880 get_args (args, message_thread_id_);
58795881 } else if (op == " sdmcti" ) {
@@ -8359,7 +8361,7 @@ class CliClient final : public Actor {
83598361 int64 paid_message_star_count_ = 0 ;
83608362 int64 message_effect_id_ = 0 ;
83618363 bool only_preview_ = false ;
8362- ForumTopicId forum_topic_id_;
8364+ int32 forum_topic_id_ = 0 ;
83638365 MessageThreadId message_thread_id_;
83648366 ChatId direct_messages_chat_topic_id_;
83658367 string business_connection_id_;
0 commit comments