TermsOfService
public struct TermsOfService : Codable, Equatable, FunctionResult
Contains Telegram terms of service
-
Text of the terms of service
Declaration
Swift
public let text: FormattedText
-
The minimum age of a user to be able to accept the terms; 0 if any
Declaration
Swift
public let minUserAge: Int32
-
True, if a blocking popup with terms of service must be shown to the user
Declaration
Swift
public let showPopup: Bool
-
Contains Telegram terms of service
Declaration
Swift
public init(text: FormattedText, minUserAge: Int32, showPopup: Bool)
Parameters
text
Text of the terms of service
minUserAge
The minimum age of a user to be able to accept the terms; 0 if any
showPopup
True, if a blocking popup with terms of service must be shown to the user