Use td_api::error in td_api::updateStorySendFailed.
This commit is contained in:
parent
6b17c0fdec
commit
6dbec3fda7
@ -6033,10 +6033,9 @@ updateStorySendSucceeded story:story old_story_id:int32 = Update;
|
||||
|
||||
//@description A story failed to send. If the story sending is canceled, then updateStoryDeleted will be received instead of this update
|
||||
//@story The failed to send story
|
||||
//@error The cause of the story sending failure; may be null if unknown
|
||||
//@error_code An error code
|
||||
//@error_message Error message
|
||||
updateStorySendFailed story:story error:CanSendStoryResult error_code:int32 error_message:string = Update;
|
||||
//@error The cause of the story sending failure
|
||||
//@error_type Type of the error; may be null if unknown
|
||||
updateStorySendFailed story:story error:error error_type:CanSendStoryResult = Update;
|
||||
|
||||
//@description The list of active stories posted by a specific chat has changed
|
||||
//@active_stories The new list of active stories
|
||||
|
@ -5149,10 +5149,11 @@ void StoryManager::delete_pending_story(FileId file_id, unique_ptr<PendingStory>
|
||||
stories_.erase(story_full_id);
|
||||
send_update_chat_active_stories(pending_story->dialog_id_, get_active_stories(pending_story->dialog_id_),
|
||||
"delete_pending_story");
|
||||
send_closure(G()->td(), &Td::send_update,
|
||||
td_api::make_object<td_api::updateStorySendFailed>(std::move(story_object),
|
||||
get_can_send_story_result_object(status, true),
|
||||
status.code(), status.message().str()));
|
||||
send_closure(
|
||||
G()->td(), &Td::send_update,
|
||||
td_api::make_object<td_api::updateStorySendFailed>(
|
||||
std::move(story_object), td_api::make_object<td_api::error>(status.code(), status.message().str()),
|
||||
get_can_send_story_result_object(status, true)));
|
||||
}
|
||||
auto it = yet_unsent_stories_.find(pending_story->dialog_id_);
|
||||
CHECK(it != yet_unsent_stories_.end());
|
||||
|
Loading…
Reference in New Issue
Block a user