Add story.is_being_sent.
This commit is contained in:
parent
cabd71c3c3
commit
a554859d80
@ -5055,6 +5055,7 @@ storyInteractionInfo view_count:int32 reaction_count:int32 recent_viewer_user_id
|
||||
//@id Unique story identifier among stories of the given sender
|
||||
//@sender_chat_id Identifier of the chat that posted the story
|
||||
//@date Point in time (Unix timestamp) when the story was published
|
||||
//@is_being_sent True, if the story is being sent by the current user
|
||||
//@is_being_edited True, if the story is being edited by the current user
|
||||
//@is_edited True, if the story was edited
|
||||
//@is_pinned True, if the story is saved in the sender's profile and will be available there after expiration
|
||||
@ -5069,7 +5070,7 @@ storyInteractionInfo view_count:int32 reaction_count:int32 recent_viewer_user_id
|
||||
//@content Content of the story
|
||||
//@areas Clickable areas to be shown on the story content
|
||||
//@caption Caption of the story
|
||||
story id:int32 sender_chat_id:int53 date:int32 is_being_edited:Bool is_edited:Bool is_pinned:Bool is_visible_only_for_self:Bool can_be_forwarded:Bool can_be_replied:Bool can_get_viewers:Bool has_expired_viewers:Bool interaction_info:storyInteractionInfo chosen_reaction_type:ReactionType privacy_settings:StoryPrivacySettings content:StoryContent areas:vector<storyArea> caption:formattedText = Story;
|
||||
story id:int32 sender_chat_id:int53 date:int32 is_being_sent:Bool is_being_edited:Bool is_edited:Bool is_pinned:Bool is_visible_only_for_self:Bool can_be_forwarded:Bool can_be_replied:Bool can_get_viewers:Bool has_expired_viewers:Bool interaction_info:storyInteractionInfo chosen_reaction_type:ReactionType privacy_settings:StoryPrivacySettings content:StoryContent areas:vector<storyArea> caption:formattedText = Story;
|
||||
|
||||
//@description Represents a list of stories @total_count Approximate total number of stories found @stories The list of stories
|
||||
stories total_count:int32 stories:vector<story> = Stories;
|
||||
|
@ -2569,6 +2569,7 @@ td_api::object_ptr<td_api::story> StoryManager::get_story_object(StoryFullId sto
|
||||
bool is_edited = story->is_edited_;
|
||||
|
||||
auto story_id = story_full_id.get_story_id();
|
||||
CHECK(story_id.is_valid());
|
||||
auto *content = story->content_.get();
|
||||
auto *areas = &story->areas_;
|
||||
auto *caption = &story->caption_;
|
||||
@ -2588,6 +2589,7 @@ td_api::object_ptr<td_api::story> StoryManager::get_story_object(StoryFullId sto
|
||||
}
|
||||
}
|
||||
|
||||
bool is_being_sent = !story_id.is_server();
|
||||
auto changelog_dialog_id = get_changelog_story_dialog_id();
|
||||
bool is_visible_only_for_self =
|
||||
!story_id.is_server() || dialog_id == changelog_dialog_id || (!story->is_pinned_ && !is_active_story(story));
|
||||
@ -2602,8 +2604,9 @@ td_api::object_ptr<td_api::story> StoryManager::get_story_object(StoryFullId sto
|
||||
|
||||
return td_api::make_object<td_api::story>(
|
||||
story_id.get(), td_->messages_manager_->get_chat_id_object(dialog_id, "get_story_object"), story->date_,
|
||||
is_being_edited, is_edited, story->is_pinned_, is_visible_only_for_self, can_be_forwarded, can_be_replied,
|
||||
can_get_viewers, has_expired_viewers, story->interaction_info_.get_story_interaction_info_object(td_),
|
||||
is_being_sent, is_being_edited, is_edited, story->is_pinned_, is_visible_only_for_self, can_be_forwarded,
|
||||
can_be_replied, can_get_viewers, has_expired_viewers,
|
||||
story->interaction_info_.get_story_interaction_info_object(td_),
|
||||
story->chosen_reaction_type_.get_reaction_type_object(), std::move(privacy_settings),
|
||||
get_story_content_object(td_, content), std::move(story_areas),
|
||||
get_formatted_text_object(*caption, true, get_story_content_duration(td_, content)));
|
||||
|
Loading…
Reference in New Issue
Block a user