From 9a7088b2a0ad9894e280d7abc0253a7a88397510 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 13 Oct 2025 15:30:11 +0300 Subject: [PATCH] Use get_caption in sendStory and editStory. --- telegram-bot-api/Client.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index f9c9ae3..732c423 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -12950,8 +12950,7 @@ td::Status Client::process_post_story_query(PromisedQueryPtr &query) { auto business_connection_id = query->arg("business_connection_id").str(); TRY_RESULT(content, get_input_story_content(query.get())); TRY_RESULT(areas, get_input_story_areas(query.get())); - TRY_RESULT(caption, get_formatted_text(query->arg("caption").str(), query->arg("parse_mode").str(), - get_input_entities(query.get(), "caption_entities"))); + TRY_RESULT(caption, get_caption(query.get())); check_business_connection( business_connection_id, std::move(query), [this, content = std::move(content), areas = std::move(areas), caption = std::move(caption)]( @@ -12997,8 +12996,7 @@ td::Status Client::process_edit_story_query(PromisedQueryPtr &query) { auto business_connection_id = query->arg("business_connection_id").str(); TRY_RESULT(content, get_input_story_content(query.get())); TRY_RESULT(areas, get_input_story_areas(query.get())); - TRY_RESULT(caption, get_formatted_text(query->arg("caption").str(), query->arg("parse_mode").str(), - get_input_entities(query.get(), "caption_entities"))); + TRY_RESULT(caption, get_caption(query.get())); check_business_connection( business_connection_id, std::move(query), [this, content = std::move(content), areas = std::move(areas), caption = std::move(caption)](