From f5bf77fc079175f36401dfe6690340d3bd6e8f61 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 27 Jan 2025 15:26:18 +0300 Subject: [PATCH] Add InputPaidMediaVideo.start_timestamp. --- telegram-bot-api/Client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 7598b6f..f9534ed 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -9936,8 +9936,9 @@ td::Result> Client::get_input_paid_me } else if (type == "video") { TRY_RESULT(duration, object.get_optional_int_field("duration")); TRY_RESULT(supports_streaming, object.get_optional_bool_field("supports_streaming")); + TRY_RESULT(start_timestamp, object.get_optional_int_field("start_timestamp")); duration = td::clamp(duration, 0, MAX_DURATION); - media_type = make_object(nullptr, 0, duration, supports_streaming); + media_type = make_object(nullptr, start_timestamp, duration, supports_streaming); } else { return td::Status::Error(PSLICE() << "type \"" << type << "\" is unsupported"); }