Add clearSearchedForHashtags.clear_cashtags.
This commit is contained in:
parent
160f0b5f53
commit
54015a1842
@ -8077,8 +8077,8 @@ getSearchedForHashtags prefix:string limit:int32 = Hashtags;
|
||||
//@description Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags @hashtag Hashtag or cashtag to delete
|
||||
removeSearchedForHashtag hashtag:string = Ok;
|
||||
|
||||
//@description Clears the list of recently searched for hashtags
|
||||
clearSearchedForHashtags = Ok;
|
||||
//@description Clears the list of recently searched for hashtags or cashtags @clear_cashtags Pass true to clear the list of recently searched for cashtags; otherwise the list of recently searched for hashtags will be cleared
|
||||
clearSearchedForHashtags clear_cashtags:Bool = Ok;
|
||||
|
||||
//@description Deletes all call messages @revoke Pass true to delete the messages for all users
|
||||
deleteAllCallMessages revoke:Bool = Ok;
|
||||
|
@ -5341,7 +5341,8 @@ void Td::on_request(uint64 id, td_api::removeSearchedForHashtag &request) {
|
||||
void Td::on_request(uint64 id, td_api::clearSearchedForHashtags &request) {
|
||||
CHECK_IS_USER();
|
||||
CREATE_OK_REQUEST_PROMISE();
|
||||
send_closure(hashtag_search_hints_, &HashtagHints::clear, std::move(promise));
|
||||
send_closure(request.clear_cashtags_ ? cashtag_search_hints_ : hashtag_search_hints_, &HashtagHints::clear,
|
||||
std::move(promise));
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::deleteAllCallMessages &request) {
|
||||
|
@ -3073,8 +3073,8 @@ class CliClient final : public Actor {
|
||||
string hashtag;
|
||||
get_args(args, hashtag);
|
||||
send_request(td_api::make_object<td_api::removeSearchedForHashtag>(hashtag));
|
||||
} else if (op == "csfh") {
|
||||
send_request(td_api::make_object<td_api::clearSearchedForHashtags>());
|
||||
} else if (op == "csfh" || op == "csfc") {
|
||||
send_request(td_api::make_object<td_api::clearSearchedForHashtags>(op == "csfc"));
|
||||
} else if (op == "DeleteAllCallMessages") {
|
||||
bool revoke = as_bool(args);
|
||||
send_request(td_api::make_object<td_api::deleteAllCallMessages>(revoke));
|
||||
|
Loading…
Reference in New Issue
Block a user