aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/InlineQueriesManager.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-11-13 06:54:39 +0300
committerlevlam <levlam@telegram.org>2024-11-13 06:54:39 +0300
commit28c850b57264a192a7720debd8f314e5eae81caa (patch)
tree4eb54e6fe289ec36d451b4f54970cec6d228daf2 /td/telegram/InlineQueriesManager.cpp
parent67293980e0529902b36844e9ee9f09ed3b2103fa (diff)
Add td_api::getStickerOutline and remove outline from sticker object.
Diffstat (limited to 'td/telegram/InlineQueriesManager.cpp')
-rw-r--r--td/telegram/InlineQueriesManager.cpp47
1 files changed, 2 insertions, 45 deletions
diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp
index ec44b4435..f7c3c2295 100644
--- a/td/telegram/InlineQueriesManager.cpp
+++ b/td/telegram/InlineQueriesManager.cpp
@@ -1413,49 +1413,6 @@ tl_object_ptr<td_api::StickerFullType> copy(const td_api::StickerFullType &obj)
}
template <>
-tl_object_ptr<td_api::point> copy(const td_api::point &obj) {
- return td_api::make_object<td_api::point>(obj.x_, obj.y_);
-}
-
-template <>
-tl_object_ptr<td_api::VectorPathCommand> copy(const td_api::VectorPathCommand &obj) {
- switch (obj.get_id()) {
- case td_api::vectorPathCommandLine::ID: {
- auto &command = static_cast<const td_api::vectorPathCommandLine &>(obj);
- return td_api::make_object<td_api::vectorPathCommandLine>(copy(command.end_point_));
- }
- case td_api::vectorPathCommandCubicBezierCurve::ID: {
- auto &command = static_cast<const td_api::vectorPathCommandCubicBezierCurve &>(obj);
- return td_api::make_object<td_api::vectorPathCommandCubicBezierCurve>(
- copy(command.start_control_point_), copy(command.end_control_point_), copy(command.end_point_));
- }
- default:
- UNREACHABLE();
- return nullptr;
- }
-}
-
-static tl_object_ptr<td_api::VectorPathCommand> copy_vector_path_command(
- const tl_object_ptr<td_api::VectorPathCommand> &obj) {
- return copy(obj);
-}
-
-template <>
-tl_object_ptr<td_api::closedVectorPath> copy(const td_api::closedVectorPath &obj) {
- return td_api::make_object<td_api::closedVectorPath>(transform(obj.commands_, copy_vector_path_command));
-}
-
-static tl_object_ptr<td_api::closedVectorPath> copy_closed_vector_path(
- const tl_object_ptr<td_api::closedVectorPath> &obj) {
- return copy(obj);
-}
-
-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:
@@ -1504,8 +1461,8 @@ 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_), copy(obj.outline_),
- copy(obj.thumbnail_), copy(obj.sticker_));
+ copy(obj.format_), copy(obj.full_type_), copy(obj.thumbnail_),
+ copy(obj.sticker_));
}
template <>