From ee229f16dc223cecace4115652c007833f9a51ef Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 27 May 2026 14:47:47 +0300 Subject: Add InputMediaLink. --- telegram-bot-api/Client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index a385b04..ff20d24 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -11872,6 +11872,13 @@ td::Result> Client::get_input_poll_me TRY_RESULT(venue, get_venue(object)); return make_object(std::move(venue)); } + if (type == "link") { + if (!for_option) { + return td::Status::Error(PSLICE() << "type \"" << type << "\" is unsupported"); + } + TRY_RESULT(url, object.get_required_string_field("url")); + return make_object(url); + } TRY_RESULT(media, object.get_optional_string_field("media")); auto input_file = get_input_file(query, td::Slice(), media, false); -- cgit v1.2.3