get_login_url


Description:

public async HttpUrl get_login_url (int64 chat_id, int64 message_id, int64 button_id, bool allow_write_access) throws TDLibError

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 Client.get_login_url_info 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

Parameters:

chat_id

Chat identifier of the message with the button

message_id

Message identifier of the message with the button

button_id

Button identifier

allow_write_access

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