Raw.KeyboardButtonUrlAuth
Button to request a user to authorize via url using seamless telegram login. when the user clicks on such a button, messages.requesturlauth should be called, providing the buttonId and the id of the container message. the returned urlauthresultrequest object will contain more details about the authorization request (requestWriteAccess if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). finally, the user can choose to call messages.accepturlauth to get a urlauthresultaccepted with the url to open instead of the url of this constructor, or a urlauthresultdefault, in which case the url of this constructor must be opened, instead. if the user refuses the authorization request but still wants to open the link, the url of this constructor must be used.
keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;
export namespace Raw {
export class KeyboardButtonUrlAuth {
constructor(params: { text: string; fwdText?: string; url: string; buttonId: number }) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x10b78d29
Property
text
: stringButton label
fwdText
: string or undefinedNew text of the button in forwarded messages.
url
: stringAn http url to be opened with user authorization data added to the query string when the button is pressed. if the user refuses to provide authorization data, the original url without information about the user will be opened. the data added is the same as described in receiving authorization data.note: services must always check the hash of the received data to verify the authentication and the integrity of the data as described in checking authorization.
buttonId
: numberId of the button to pass to messages.requesturlauth