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
inlineQueryIdUnique identifier of the inline query
nextOffsetThe offset for the next request. If empty, there are no more results
resultsResults of the query
switchPmTextIf 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
switchPmParameterParameter for the bot start message
View on GitHub
Install in Dash
InlineQueryResults Structure Reference