From eff2056212b1da2d200131816e7ca43b0da46dde Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 4 Oct 2024 14:23:53 +0300 Subject: [PATCH] Fix ExternalReplyInfo.story. --- telegram-bot-api/Client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 6095f43..2c43c6a 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -2825,9 +2825,11 @@ class Client::JsonExternalReplyInfo final : public td::Jsonable { object("giveaway_winners", JsonGiveawayWinners(content, client_)); break; } - case td_api::messageStory::ID: - object("story", JsonEmptyObject()); + case td_api::messageStory::ID: { + auto content = static_cast(reply_->content_.get()); + object("story", JsonStory(content->story_sender_chat_id_, content->story_id_, client_)); break; + } default: LOG(ERROR) << "Receive external reply with " << to_string(reply_->content_); }