Skip to content

Commit f5bf77f

Browse files
committed
Add InputPaidMediaVideo.start_timestamp.
1 parent 23aca77 commit f5bf77f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

telegram-bot-api/Client.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -9936,8 +9936,9 @@ td::Result<td_api::object_ptr<td_api::inputPaidMedia>> Client::get_input_paid_me
99369936
} else if (type == "video") {
99379937
TRY_RESULT(duration, object.get_optional_int_field("duration"));
99389938
TRY_RESULT(supports_streaming, object.get_optional_bool_field("supports_streaming"));
9939+
TRY_RESULT(start_timestamp, object.get_optional_int_field("start_timestamp"));
99399940
duration = td::clamp(duration, 0, MAX_DURATION);
9940-
media_type = make_object<td_api::inputPaidMediaTypeVideo>(nullptr, 0, duration, supports_streaming);
9941+
media_type = make_object<td_api::inputPaidMediaTypeVideo>(nullptr, start_timestamp, duration, supports_streaming);
99419942
} else {
99429943
return td::Status::Error(PSLICE() << "type \"" << type << "\" is unsupported");
99439944
}

0 commit comments

Comments
 (0)