diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 29089b923..2a9c310c6 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -4458,6 +4458,9 @@ canSendStoryResultOk = CanSendStoryResult; //@description The user must subscribe to Telegram Premium to be able to post stories canSendStoryResultPremiumNeeded = CanSendStoryResult; +//@description The channel chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat +canSendStoryResultBoostNeeded = CanSendStoryResult; + //@description The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire canSendStoryResultActiveStoryLimitExceeded = CanSendStoryResult; diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp index 5d496effc..b8cb86f63 100644 --- a/td/telegram/StoryManager.cpp +++ b/td/telegram/StoryManager.cpp @@ -62,6 +62,9 @@ static td_api::object_ptr get_can_send_story_result_ if (error.message() == "PREMIUM_ACCOUNT_REQUIRED") { return td_api::make_object(); } + if (error.message() == "BOOSTS_REQUIRED") { + return td_api::make_object(); + } if (error.message() == "STORIES_TOO_MUCH") { return td_api::make_object(); }