messages.requestUrlAuth
获取有关无缝 Telegram 登录授权请求的更多信息,请点击此处 »
获取有关无缝 Telegram 登录授权请求的更多信息,了解更多信息 [点击此处 »](https://core.telegram.org/api/url-authorization.md)
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
peer | InputPeer | 否 | 消息所在的peer |
msg_id | int | 否 | 消息 |
button_id | int | 否 | 请求授权的按钮ID |
url | string | 否 | URL用于【链接URL授权,点击查看更多信息»](https://core.telegram.org/api/url-authorization.md#link-url-authorization) |
in_app_origin | string | 否 | 对于[来自迷你应用程序的 OAuth 授权 »](https://core.telegram.org/api/url-authorization.md#oauth-authorization-for-mini-apps):发起 OAuth 请求的 Web 视图的来源,格式为 `scheme://host`(对于非默认端口则为 `scheme://host:port`) |
回应
UrlAuthResult
MTProto RPC
- 500 · OAUTH_REQUEST_INVALID — 指定的 OAuth 请求无效。
- 400 · URL_EXPIRED — 指定的 OAuth 请求已过期。
- 400 · URL_INVALID — 提供的 URL 无效。