GetLoginUrl
public struct GetLoginUrl : Codable, Equatable, TDFunction
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
-
Undocumented
Declaration
Swift
public typealias Result = HttpUrl
-
Chat identifier of the message with the button
Declaration
Swift
public let chatId: Int53
-
Message identifier of the message with the button
Declaration
Swift
public let messageId: Int53
-
Button identifier
Declaration
Swift
public let buttonId: Int32
-
True, if the user allowed the bot to send them messages
Declaration
Swift
public let allowWriteAccess: Bool
-
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
Declaration
Parameters
chatId
Chat identifier of the message with the button
messageId
Message identifier of the message with the button
buttonId
Button identifier
allowWriteAccess
True, if the user allowed the bot to send them messages