InlineQueryResults
public struct InlineQueryResults : Codable, Equatable, FunctionResult
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query
-
Unique identifier of the inline query
Declaration
Swift
public let inlineQueryId: TDInt64
-
The offset for the next request. If empty, there are no more results
Declaration
Swift
public let nextOffset: String
-
Results of the query
Declaration
Swift
public let results: [InlineQueryResult]
-
If non-empty, this text should be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switch_pm_parameter
Declaration
Swift
public let switchPmText: String
-
Parameter for the bot start message
Declaration
Swift
public let switchPmParameter: String
-
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query
Declaration
Swift
public init(inlineQueryId: TDInt64, nextOffset: String, results: [InlineQueryResult], switchPmText: String, switchPmParameter: String)
Parameters
inlineQueryId
Unique identifier of the inline query
nextOffset
The offset for the next request. If empty, there are no more results
results
Results of the query
switchPmText
If non-empty, this text should be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switch_pm_parameter
switchPmParameter
Parameter for the bot start message