mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-29 13:28:01 +00:00
Add removeUserVerification.
This commit is contained in:
parent
1f8ba44aaa
commit
faf2f9b60b
@ -258,6 +258,7 @@ bool Client::init_methods() {
|
|||||||
methods_.emplace("sendgift", &Client::process_send_gift_query);
|
methods_.emplace("sendgift", &Client::process_send_gift_query);
|
||||||
methods_.emplace("verifyuser", &Client::process_verify_user_query);
|
methods_.emplace("verifyuser", &Client::process_verify_user_query);
|
||||||
methods_.emplace("verifychat", &Client::process_verify_chat_query);
|
methods_.emplace("verifychat", &Client::process_verify_chat_query);
|
||||||
|
methods_.emplace("removeuserverification", &Client::process_remove_user_verification_query);
|
||||||
methods_.emplace("setgamescore", &Client::process_set_game_score_query);
|
methods_.emplace("setgamescore", &Client::process_set_game_score_query);
|
||||||
methods_.emplace("getgamehighscores", &Client::process_get_game_high_scores_query);
|
methods_.emplace("getgamehighscores", &Client::process_get_game_high_scores_query);
|
||||||
methods_.emplace("answerwebappquery", &Client::process_answer_web_app_query_query);
|
methods_.emplace("answerwebappquery", &Client::process_answer_web_app_query_query);
|
||||||
@ -11422,6 +11423,16 @@ td::Status Client::process_verify_chat_query(PromisedQueryPtr &query) {
|
|||||||
return td::Status::OK();
|
return td::Status::OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td::Status Client::process_remove_user_verification_query(PromisedQueryPtr &query) {
|
||||||
|
TRY_RESULT(user_id, get_user_id(query.get()));
|
||||||
|
check_user(user_id, std::move(query), [this, user_id](PromisedQueryPtr query) {
|
||||||
|
send_request(
|
||||||
|
make_object<td_api::removeMessageSenderBotVerification>(0, make_object<td_api::messageSenderUser>(user_id)),
|
||||||
|
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||||
|
});
|
||||||
|
return td::Status::OK();
|
||||||
|
}
|
||||||
|
|
||||||
td::Status Client::process_set_game_score_query(PromisedQueryPtr &query) {
|
td::Status Client::process_set_game_score_query(PromisedQueryPtr &query) {
|
||||||
auto chat_id = query->arg("chat_id");
|
auto chat_id = query->arg("chat_id");
|
||||||
auto message_id = get_message_id(query.get());
|
auto message_id = get_message_id(query.get());
|
||||||
|
@ -692,6 +692,7 @@ class Client final : public WebhookActor::Callback {
|
|||||||
td::Status process_send_gift_query(PromisedQueryPtr &query);
|
td::Status process_send_gift_query(PromisedQueryPtr &query);
|
||||||
td::Status process_verify_user_query(PromisedQueryPtr &query);
|
td::Status process_verify_user_query(PromisedQueryPtr &query);
|
||||||
td::Status process_verify_chat_query(PromisedQueryPtr &query);
|
td::Status process_verify_chat_query(PromisedQueryPtr &query);
|
||||||
|
td::Status process_remove_user_verification_query(PromisedQueryPtr &query);
|
||||||
td::Status process_set_game_score_query(PromisedQueryPtr &query);
|
td::Status process_set_game_score_query(PromisedQueryPtr &query);
|
||||||
td::Status process_get_game_high_scores_query(PromisedQueryPtr &query);
|
td::Status process_get_game_high_scores_query(PromisedQueryPtr &query);
|
||||||
td::Status process_answer_web_app_query_query(PromisedQueryPtr &query);
|
td::Status process_answer_web_app_query_query(PromisedQueryPtr &query);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user