// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2026 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #pragma once #include "td/telegram/telegram_api.h" #include "td/utils/common.h" #include namespace td { struct InputMedia { telegram_api::object_ptr media_; telegram_api::object_ptr rich_message_; InputMedia() = default; template ::value>> InputMedia(telegram_api::object_ptr &&media) : media_(std::move(media)) { } InputMedia(telegram_api::object_ptr &&media) : media_(std::move(media)) { } InputMedia(telegram_api::object_ptr &&rich_message) : rich_message_(std::move(rich_message)) { } bool is_empty() const { return media_ == nullptr && rich_message_ == nullptr; } }; } // namespace td