Interface GetLoginUrl

Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button. Request type for Tdjson#getLoginUrl.

interface GetLoginUrl {
    @type: "getLoginUrl";
    allow_write_access?: boolean;
    button_id: number;
    chat_id: number;
    message_id: number;
}

Properties

@type: "getLoginUrl"
allow_write_access?: boolean

Pass true to allow the bot to send messages to the current user.

button_id: number

Button identifier.

chat_id: number

Chat identifier of the message with the button.

message_id: number

Message identifier of the message with the button.