Add td_api::updateActiveStories.

This commit is contained in:
levlam 2023-06-15 13:47:48 +03:00
parent 59477f8f98
commit f4d8fddddd
2 changed files with 5 additions and 1 deletions

View File

@ -5693,6 +5693,9 @@ updateStory story:story = Update;
//@description A story became inaccessible @story_sender_user_id Identifier of the user that created the story @story_id Story identifier
updateStoryDeleted story_sender_user_id:int53 story_id:int32 = Update;
//@description The list of active stories of a specific sender has changed @active_stories The new list of active stories
updateActiveStories active_stories:activeStories = Update;
//@description An option changed its value @name The option name @value The new option value
updateOption name:string value:OptionValue = Update;

View File

@ -1237,7 +1237,8 @@ void StoryManager::on_update_active_stories(DialogId owner_dialog_id, StoryId ma
}
void StoryManager::send_update_active_stories(DialogId owner_dialog_id) {
// TODO
send_closure(G()->td(), &Td::send_update,
td_api::make_object<td_api::updateActiveStories>(get_active_stories_object(owner_dialog_id)));
}
void StoryManager::on_update_read_stories(DialogId owner_dialog_id, StoryId max_read_story_id) {