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
textText of the terms of service
minUserAgeThe minimum age of a user to be able to accept the terms; 0 if any
showPopupTrue, if a blocking popup with terms of service must be shown to the user
View on GitHub
Install in Dash
TermsOfService Structure Reference