Add td_api::canSendStoryResultBoostNeeded.
This commit is contained in:
parent
c120b5ef19
commit
e2462e2487
@ -4458,6 +4458,9 @@ canSendStoryResultOk = CanSendStoryResult;
|
|||||||
//@description The user must subscribe to Telegram Premium to be able to post stories
|
//@description The user must subscribe to Telegram Premium to be able to post stories
|
||||||
canSendStoryResultPremiumNeeded = CanSendStoryResult;
|
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
|
//@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;
|
canSendStoryResultActiveStoryLimitExceeded = CanSendStoryResult;
|
||||||
|
|
||||||
|
@ -62,6 +62,9 @@ static td_api::object_ptr<td_api::CanSendStoryResult> get_can_send_story_result_
|
|||||||
if (error.message() == "PREMIUM_ACCOUNT_REQUIRED") {
|
if (error.message() == "PREMIUM_ACCOUNT_REQUIRED") {
|
||||||
return td_api::make_object<td_api::canSendStoryResultPremiumNeeded>();
|
return td_api::make_object<td_api::canSendStoryResultPremiumNeeded>();
|
||||||
}
|
}
|
||||||
|
if (error.message() == "BOOSTS_REQUIRED") {
|
||||||
|
return td_api::make_object<td_api::canSendStoryResultBoostNeeded>();
|
||||||
|
}
|
||||||
if (error.message() == "STORIES_TOO_MUCH") {
|
if (error.message() == "STORIES_TOO_MUCH") {
|
||||||
return td_api::make_object<td_api::canSendStoryResultActiveStoryLimitExceeded>();
|
return td_api::make_object<td_api::canSendStoryResultActiveStoryLimitExceeded>();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user