AnswerCallbackQuery
public struct AnswerCallbackQuery : Codable, Equatable, TDFunction
Sets the result of a callback query; for bots only
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Identifier of the callback query
Declaration
Swift
public let callbackQueryId: TDInt64
-
Text of the answer
Declaration
Swift
public let text: String
-
If true, an alert should be shown to the user instead of a toast notification
Declaration
Swift
public let showAlert: Bool
-
URL to be opened
Declaration
Swift
public let url: String
-
Time during which the result of the query can be cached, in seconds
Declaration
Swift
public let cacheTime: Int32
-
Sets the result of a callback query; for bots only
Declaration
Swift
public init(callbackQueryId: TDInt64, text: String, showAlert: Bool, url: String, cacheTime: Int32)
Parameters
callbackQueryId
Identifier of the callback query
text
Text of the answer
showAlert
If true, an alert should be shown to the user instead of a toast notification
url
URL to be opened
cacheTime
Time during which the result of the query can be cached, in seconds