GetPreferredCountryLanguage
public struct GetPreferredCountryLanguage : Codable, Equatable, TDFunction
Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown
-
Undocumented
Declaration
Swift
public typealias Result = Text
-
A two-letter ISO 3166-1 alpha-2 country code
Declaration
Swift
public let countryCode: String
-
Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown
Declaration
Swift
public init(countryCode: String)
Parameters
countryCode
A two-letter ISO 3166-1 alpha-2 country code