diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 13d7c57..e8a2d9b 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -11881,6 +11881,13 @@ td::Result> Client::get_input_paid_me TRY_RESULT(type, object.get_required_string_field("type")); if (type == "photo") { media_type = make_object(nullptr); + } else if (type == "live_photo") { + TRY_RESULT(photo, object.get_optional_string_field("photo")); + media_type = make_object(std::move(input_file)); + input_file = get_input_file(query, "photo", photo, false); + if (input_file == nullptr) { + return td::Status::Error("photo not found"); + } } else if (type == "video") { TRY_RESULT(duration, object.get_optional_int_field("duration")); TRY_RESULT(supports_streaming, object.get_optional_bool_field("supports_streaming"));