Replace getInviteText with getApplicationDownloadLink.
This commit is contained in:
parent
70a76e333f
commit
89459ca497
@ -5353,8 +5353,8 @@ getCountryCode = Text;
|
||||
//@description Returns information about a phone number by its prefix. Can be called before authorization @phone_number_prefix The phone number prefix
|
||||
getPhoneNumberInfo phone_number_prefix:string = PhoneNumberInfo;
|
||||
|
||||
//@description Returns the default text for invitation messages to be used as a placeholder when the current user invites friends to Telegram
|
||||
getInviteText = Text;
|
||||
//@description Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram
|
||||
getApplicationDownloadLink = HttpUrl;
|
||||
|
||||
//@description Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization @link The link
|
||||
getDeepLinkInfo link:string = DeepLinkInfo;
|
||||
|
@ -8155,14 +8155,14 @@ void Td::on_request(uint64 id, const td_api::getPhoneNumberInfo &request) {
|
||||
country_info_manager_->get_phone_number_info(request.phone_number_prefix_, std::move(promise));
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::getInviteText &request) {
|
||||
void Td::on_request(uint64 id, const td_api::getApplicationDownloadLink &request) {
|
||||
CHECK_IS_USER();
|
||||
CREATE_REQUEST_PROMISE();
|
||||
auto query_promise = PromiseCreator::lambda([promise = std::move(promise)](Result<string> result) mutable {
|
||||
if (result.is_error()) {
|
||||
promise.set_error(result.move_as_error());
|
||||
} else {
|
||||
promise.set_value(make_tl_object<td_api::text>(result.move_as_ok()));
|
||||
promise.set_value(make_tl_object<td_api::httpUrl>(result.move_as_ok()));
|
||||
}
|
||||
});
|
||||
create_handler<GetInviteTextQuery>(std::move(query_promise))->send();
|
||||
|
@ -1172,7 +1172,7 @@ class Td final : public NetQueryCallback {
|
||||
|
||||
void on_request(uint64 id, const td_api::getPhoneNumberInfo &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::getInviteText &request);
|
||||
void on_request(uint64 id, const td_api::getApplicationDownloadLink &request);
|
||||
|
||||
void on_request(uint64 id, td_api::getDeepLinkInfo &request);
|
||||
|
||||
|
@ -2280,8 +2280,8 @@ class CliClient final : public Actor {
|
||||
send_request(td_api::make_object<td_api::getCountryCode>());
|
||||
} else if (op == "gpni") {
|
||||
send_request(td_api::make_object<td_api::getPhoneNumberInfo>(args));
|
||||
} else if (op == "git") {
|
||||
send_request(td_api::make_object<td_api::getInviteText>());
|
||||
} else if (op == "gadl") {
|
||||
send_request(td_api::make_object<td_api::getApplicationDownloadLink>());
|
||||
} else if (op == "atos") {
|
||||
send_request(td_api::make_object<td_api::acceptTermsOfService>(args));
|
||||
} else if (op == "gdli") {
|
||||
|
Loading…
Reference in New Issue
Block a user