Return chat_id back to activeStories.
This commit is contained in:
parent
bd6e6f28bc
commit
00608a45a3
@ -4957,12 +4957,13 @@ stories total_count:int32 stories:vector<story> = Stories;
|
|||||||
//@description Contains basic information about a story @story_id Unique story identifier among stories of the given sender @date Point in time (Unix timestamp) when the story was published
|
//@description Contains basic information about a story @story_id Unique story identifier among stories of the given sender @date Point in time (Unix timestamp) when the story was published
|
||||||
storyInfo story_id:int32 date:int32 = StoryInfo;
|
storyInfo story_id:int32 date:int32 = StoryInfo;
|
||||||
|
|
||||||
//@description Describes active stories sent by the same sender
|
//@description Describes active stories posted by a chat
|
||||||
|
//@chat_id Identifier of the chat that posted the stories
|
||||||
//@list Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list
|
//@list Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list
|
||||||
//@order A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order
|
//@order A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order
|
||||||
//@max_read_story_id Identifier of the last read active story
|
//@max_read_story_id Identifier of the last read active story
|
||||||
//@stories Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers)
|
//@stories Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers)
|
||||||
activeStories list:StoryList order:int53 max_read_story_id:int32 stories:vector<storyInfo> = ActiveStories;
|
activeStories chat_id:int53 list:StoryList order:int53 max_read_story_id:int32 stories:vector<storyInfo> = ActiveStories;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains a part of a file @data File bytes
|
//@description Contains a part of a file @data File bytes
|
||||||
@ -5727,9 +5728,8 @@ updateStory story:story = Update;
|
|||||||
updateStoryDeleted story_sender_chat_id:int53 story_id:int32 = Update;
|
updateStoryDeleted story_sender_chat_id:int53 story_id:int32 = Update;
|
||||||
|
|
||||||
//@description The list of active stories posted by a specific chat has changed
|
//@description The list of active stories posted by a specific chat has changed
|
||||||
//@chat_id Identifier of the chat that posted the stories
|
|
||||||
//@active_stories The new list of active stories
|
//@active_stories The new list of active stories
|
||||||
updateChatActiveStories chat_id:int53 active_stories:activeStories = Update;
|
updateChatActiveStories active_stories:activeStories = Update;
|
||||||
|
|
||||||
//@description An option changed its value @name The option name @value The new option value
|
//@description An option changed its value @name The option name @value The new option value
|
||||||
updateOption name:string value:OptionValue = Update;
|
updateOption name:string value:OptionValue = Update;
|
||||||
|
@ -1846,8 +1846,9 @@ td_api::object_ptr<td_api::activeStories> StoryManager::get_active_stories_objec
|
|||||||
order = active_stories->public_order_;
|
order = active_stories->public_order_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return td_api::make_object<td_api::activeStories>(std::move(list), order, max_read_story_id.get(),
|
return td_api::make_object<td_api::activeStories>(
|
||||||
std::move(stories));
|
td_->messages_manager_->get_chat_id_object(owner_dialog_id, "updateChatActiveStories"), std::move(list), order,
|
||||||
|
max_read_story_id.get(), std::move(stories));
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<FileId> StoryManager::get_story_file_ids(const Story *story) const {
|
vector<FileId> StoryManager::get_story_file_ids(const Story *story) const {
|
||||||
@ -2423,9 +2424,7 @@ void StoryManager::delete_active_stories_from_story_list(DialogId owner_dialog_i
|
|||||||
|
|
||||||
td_api::object_ptr<td_api::updateChatActiveStories> StoryManager::get_update_chat_active_stories(
|
td_api::object_ptr<td_api::updateChatActiveStories> StoryManager::get_update_chat_active_stories(
|
||||||
DialogId owner_dialog_id) const {
|
DialogId owner_dialog_id) const {
|
||||||
return td_api::make_object<td_api::updateChatActiveStories>(
|
return td_api::make_object<td_api::updateChatActiveStories>(get_active_stories_object(owner_dialog_id));
|
||||||
td_->messages_manager_->get_chat_id_object(owner_dialog_id, "updateChatActiveStories"),
|
|
||||||
get_active_stories_object(owner_dialog_id));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StoryManager::send_update_chat_active_stories(DialogId owner_dialog_id) {
|
void StoryManager::send_update_chat_active_stories(DialogId owner_dialog_id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user