Skip to content

getLoginUrl

Function · TDLib 1.8.67 · d1085f9c

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

getLoginUrl(
  chat_id: int53,
  message_id: int53,
  button_id: int53,
  allow_write_access: Bool
) → HttpUrl

chat_id

int53

Chat identifier of the message with the button

message_id

int53

Message identifier of the message with the button

button_id

int53

Button identifier

allow_write_access

Bool

Pass true to allow the bot to send messages to the current user. Phone number access can't be requested using the button