aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/InlineQueriesManager.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-11-13 06:07:01 +0300
committerlevlam <levlam@telegram.org>2024-11-13 06:07:01 +0300
commit67293980e0529902b36844e9ee9f09ed3b2103fa (patch)
treee386f86abfdcae849b52e4f3b35b6a35cb976817 /td/telegram/InlineQueriesManager.cpp
parent5f1e09e2f699f1faa2d09dc1fe494f10a04b3903 (diff)
Add class td_api::outline.
Diffstat (limited to 'td/telegram/InlineQueriesManager.cpp')
-rw-r--r--td/telegram/InlineQueriesManager.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp
index 880912b94..ec44b4435 100644
--- a/td/telegram/InlineQueriesManager.cpp
+++ b/td/telegram/InlineQueriesManager.cpp
@@ -1451,6 +1451,11 @@ static tl_object_ptr<td_api::closedVectorPath> copy_closed_vector_path(
}
template <>
+tl_object_ptr<td_api::outline> copy(const td_api::outline &obj) {
+ return td_api::make_object<td_api::outline>(transform(obj.paths_, copy_closed_vector_path));
+}
+
+template <>
tl_object_ptr<td_api::SpeechRecognitionResult> copy(const td_api::SpeechRecognitionResult &obj) {
switch (obj.get_id()) {
case td_api::speechRecognitionResultPending::ID:
@@ -1498,9 +1503,9 @@ tl_object_ptr<td_api::photo> copy(const td_api::photo &obj) {
template <>
tl_object_ptr<td_api::sticker> copy(const td_api::sticker &obj) {
- return td_api::make_object<td_api::sticker>(
- obj.id_, obj.set_id_, obj.width_, obj.height_, obj.emoji_, copy(obj.format_), copy(obj.full_type_),
- transform(obj.outline_, copy_closed_vector_path), copy(obj.thumbnail_), copy(obj.sticker_));
+ return td_api::make_object<td_api::sticker>(obj.id_, obj.set_id_, obj.width_, obj.height_, obj.emoji_,
+ copy(obj.format_), copy(obj.full_type_), copy(obj.outline_),
+ copy(obj.thumbnail_), copy(obj.sticker_));
}
template <>