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
|
//@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;
|
removeSearchedForHashtag hashtag:string = Ok;
|
||||||
|
|
||||||
//@description Clears the list of recently searched for hashtags
|
//@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 = Ok;
|
clearSearchedForHashtags clear_cashtags:Bool = Ok;
|
||||||
|
|
||||||
//@description Deletes all call messages @revoke Pass true to delete the messages for all users
|
//@description Deletes all call messages @revoke Pass true to delete the messages for all users
|
||||||
deleteAllCallMessages revoke:Bool = Ok;
|
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) {
|
void Td::on_request(uint64 id, td_api::clearSearchedForHashtags &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
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) {
|
void Td::on_request(uint64 id, const td_api::deleteAllCallMessages &request) {
|
||||||
|
@ -3073,8 +3073,8 @@ class CliClient final : public Actor {
|
|||||||
string hashtag;
|
string hashtag;
|
||||||
get_args(args, hashtag);
|
get_args(args, hashtag);
|
||||||
send_request(td_api::make_object<td_api::removeSearchedForHashtag>(hashtag));
|
send_request(td_api::make_object<td_api::removeSearchedForHashtag>(hashtag));
|
||||||
} else if (op == "csfh") {
|
} else if (op == "csfh" || op == "csfc") {
|
||||||
send_request(td_api::make_object<td_api::clearSearchedForHashtags>());
|
send_request(td_api::make_object<td_api::clearSearchedForHashtags>(op == "csfc"));
|
||||||
} else if (op == "DeleteAllCallMessages") {
|
} else if (op == "DeleteAllCallMessages") {
|
||||||
bool revoke = as_bool(args);
|
bool revoke = as_bool(args);
|
||||||
send_request(td_api::make_object<td_api::deleteAllCallMessages>(revoke));
|
send_request(td_api::make_object<td_api::deleteAllCallMessages>(revoke));
|
||||||
|
Loading…
Reference in New Issue
Block a user