diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp index e1e0297dd..e2dea3944 100644 --- a/td/telegram/StoryManager.cpp +++ b/td/telegram/StoryManager.cpp @@ -1656,11 +1656,11 @@ td_api::object_ptr StoryManager::get_story_object(StoryFullId sto return td_api::make_object( story_full_id.get_story_id().get(), td_->messages_manager_->get_chat_id_object(dialog_id, "get_story_object"), - story->date_, story->is_edited_, story->is_pinned_, is_visible_only_for_self, can_be_forwarded, can_be_replied, + story->date_, is_edited, story->is_pinned_, is_visible_only_for_self, can_be_forwarded, can_be_replied, can_get_story_viewers(story_full_id, story).is_ok(), story->interaction_info_.get_story_interaction_info_object(td_), std::move(privacy_rules), get_story_content_object(td_, content), - get_formatted_text_object(story->caption_, true, get_story_content_duration(td_, content))); + get_formatted_text_object(*caption, true, get_story_content_duration(td_, content))); } td_api::object_ptr StoryManager::get_stories_object(int32 total_count, diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index c5213e879..30e994554 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -1947,8 +1947,8 @@ void UpdatesManager::on_get_pts_update(int32 pts, std::move(difference->new_messages_), std::move(difference->new_encrypted_messages_), std::move(difference->other_updates_), std::move(difference->chats_), std::move(difference->users_), std::move(difference->state_)); - // fallthrough } + // fallthrough case telegram_api::updates_differenceSlice::ID: { auto difference = move_tl_object_as(difference_ptr); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 41edaad14..86c41272a 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -884,6 +884,10 @@ class CliClient final : public Actor { int64 user_id = 0; int32 story_id = 0; + static MessageReplyTo get_default() { + return {}; + } + operator td_api::object_ptr() const { if (message_id == 0 && user_id == 0 && story_id == 0) { return nullptr; @@ -2092,7 +2096,7 @@ class CliClient final : public Actor { void send_message(int64 chat_id, td_api::object_ptr &&input_message_content, bool disable_notification = false, bool from_background = false, - MessageReplyTo message_reply_to = {}) { + MessageReplyTo message_reply_to = MessageReplyTo::get_default()) { auto id = send_request(td_api::make_object( chat_id, message_thread_id_, message_reply_to, td_api::make_object(disable_notification, from_background, true, true,