Skip to content

Commit 82b061e

Browse files
committed
Add authLinkInfo.match_code_first.
1 parent fefe563 commit 82b061e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎td/generate/scheme/td_api.tl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3489,8 +3489,9 @@ loginUrlInfoRequestConfirmation url:string domain:string bot_user_id:int53 reque
34893489
//@platform Operating system the browser is running on
34903490
//@ip_address IP address from which the authorization is performed, in human-readable format
34913491
//@location Human-readable description of a country and a region from which the authorization is performed, based on the IP address
3492+
//@match_code_first True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called
34923493
//@match_codes The list of codes to match; may be empty if irrelevant
3493-
oauthLinkInfo user_id:int53 url:string domain:string bot_user_id:int53 request_write_access:Bool request_phone_number_access:Bool browser:string platform:string ip_address:string location:string match_codes:vector<string> = OauthLinkInfo;
3494+
oauthLinkInfo user_id:int53 url:string domain:string bot_user_id:int53 request_write_access:Bool request_phone_number_access:Bool browser:string platform:string ip_address:string location:string match_code_first:Bool match_codes:vector<string> = OauthLinkInfo;
34943495

34953496

34963497
//@description Contains parameters of the application theme

‎td/telegram/LinkManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ class RequestUrlOauthQuery final : public Td::ResultHandler {
17161716
promise_.set_value(td_api::make_object<td_api::oauthLinkInfo>(
17171717
user_id.get(), url_, request->domain_, td_->user_manager_->get_user_id_object(bot_user_id, "oauthLinkInfo"),
17181718
request->request_write_access_, request->request_phone_number_, request->browser_, request->platform_,
1719-
request->ip_, request->region_, std::move(request->match_codes_)));
1719+
request->ip_, request->region_, request->match_codes_first_, std::move(request->match_codes_)));
17201720
break;
17211721
}
17221722
case telegram_api::urlAuthResultAccepted::ID:

0 commit comments

Comments
 (0)