diff options
Diffstat (limited to 'protocols/Telegram/tdlib/td/td/telegram/Venue.cpp')
-rw-r--r-- | protocols/Telegram/tdlib/td/td/telegram/Venue.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/protocols/Telegram/tdlib/td/td/telegram/Venue.cpp b/protocols/Telegram/tdlib/td/td/telegram/Venue.cpp index bd44546356..08d84e2810 100644 --- a/protocols/Telegram/tdlib/td/td/telegram/Venue.cpp +++ b/protocols/Telegram/tdlib/td/td/telegram/Venue.cpp @@ -1,5 +1,5 @@ // -// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023 +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024 // // 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) @@ -11,9 +11,9 @@ namespace td { -Venue::Venue(const tl_object_ptr<telegram_api::GeoPoint> &geo_point_ptr, string title, string address, string provider, - string id, string type) - : location_(geo_point_ptr) +Venue::Venue(Td *td, const tl_object_ptr<telegram_api::GeoPoint> &geo_point_ptr, string title, string address, + string provider, string id, string type) + : location_(td, geo_point_ptr) , title_(std::move(title)) , address_(std::move(address)) , provider_(std::move(provider)) @@ -76,6 +76,12 @@ tl_object_ptr<telegram_api::inputBotInlineMessageMediaVenue> Venue::get_input_bo flags, location_.get_input_geo_point(), title_, address_, provider_, id_, type_, std::move(reply_markup)); } +telegram_api::object_ptr<telegram_api::mediaAreaVenue> Venue::get_input_media_area_venue( + telegram_api::object_ptr<telegram_api::mediaAreaCoordinates> &&coordinates) const { + return telegram_api::make_object<telegram_api::mediaAreaVenue>(std::move(coordinates), location_.get_fake_geo_point(), + title_, address_, provider_, id_, type_); +} + bool operator==(const Venue &lhs, const Venue &rhs) { return lhs.location_ == rhs.location_ && lhs.title_ == rhs.title_ && lhs.address_ == rhs.address_ && lhs.provider_ == rhs.provider_ && lhs.id_ == rhs.id_ && lhs.type_ == rhs.type_; |