GetPassportAuthorizationForm

public struct GetPassportAuthorizationForm : Codable, Equatable, TDFunction

Returns a Telegram Passport authorization form for sharing data with a service

  • Undocumented

    Declaration

    Swift

    public typealias Result = PassportAuthorizationForm
  • User identifier of the service’s bot

    Declaration

    Swift

    public let botUserId: Int32
  • Telegram Passport element types requested by the service

    Declaration

    Swift

    public let scope: String
  • Service’s public_key

    Declaration

    Swift

    public let publicKey: String
  • Authorization form nonce provided by the service

    Declaration

    Swift

    public let nonce: String
  • Returns a Telegram Passport authorization form for sharing data with a service

    Declaration

    Swift

    public init(botUserId: Int32, scope: String, publicKey: String, nonce: String)

    Parameters

    botUserId

    User identifier of the service’s bot

    scope

    Telegram Passport element types requested by the service

    publicKey

    Service’s public_key

    nonce

    Authorization form nonce provided by the service