From e37fde1baaef0e61410ca36becb6d721835a62a6 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 23 Oct 2020 13:42:08 +0300 Subject: [PATCH] tg_cli: add searchMessagesFilterPinned. GitOrigin-RevId: fd44a076dca80bee685d199c78e98bfa6c25d860 --- td/telegram/cli.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 8601d636c..728b0f15b 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -1072,6 +1072,9 @@ class CliClient final : public Actor { if (filter == "f" || filter == "failed") { return td_api::make_object(); } + if (filter == "pi" || filter == "pinned") { + return td_api::make_object(); + } if (!filter.empty()) { LOG(ERROR) << "Unsupported message filter " << filter; }