tg_cli: add searchMessagesFilterPinned.

GitOrigin-RevId: fd44a076dca80bee685d199c78e98bfa6c25d860
This commit is contained in:
levlam 2020-10-23 13:42:08 +03:00
parent 1049ae0630
commit e37fde1baa

View File

@ -1072,6 +1072,9 @@ class CliClient final : public Actor {
if (filter == "f" || filter == "failed") {
return td_api::make_object<td_api::searchMessagesFilterFailedToSend>();
}
if (filter == "pi" || filter == "pinned") {
return td_api::make_object<td_api::searchMessagesFilterPinned>();
}
if (!filter.empty()) {
LOG(ERROR) << "Unsupported message filter " << filter;
}