Add missed checks that methods can't be called by bots.
GitOrigin-RevId: fe43ee49d12f07cae8a30a66bdb956d4064fec25
This commit is contained in:
parent
142b36b2e6
commit
b0329188e1
@ -4773,6 +4773,7 @@ void Td::on_request(uint64 id, td_api::createTemporaryPassword &request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, td_api::processPushNotification &request) {
|
void Td::on_request(uint64 id, td_api::processPushNotification &request) {
|
||||||
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.payload_);
|
CLEAN_INPUT_STRING(request.payload_);
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
send_closure(G()->notification_manager(), &NotificationManager::process_push_notification,
|
send_closure(G()->notification_manager(), &NotificationManager::process_push_notification,
|
||||||
@ -7021,11 +7022,13 @@ void Td::on_request(uint64 id, td_api::getDeepLinkInfo &request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::getApplicationConfig &request) {
|
void Td::on_request(uint64 id, const td_api::getApplicationConfig &request) {
|
||||||
|
CHECK_IS_USER();
|
||||||
CREATE_REQUEST_PROMISE();
|
CREATE_REQUEST_PROMISE();
|
||||||
create_handler<GetAppConfigQuery>(std::move(promise))->send();
|
create_handler<GetAppConfigQuery>(std::move(promise))->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, td_api::saveApplicationLogEvent &request) {
|
void Td::on_request(uint64 id, td_api::saveApplicationLogEvent &request) {
|
||||||
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.type_);
|
CLEAN_INPUT_STRING(request.type_);
|
||||||
auto result = convert_json_value(std::move(request.data_));
|
auto result = convert_json_value(std::move(request.data_));
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
|
Loading…
Reference in New Issue
Block a user