AnswerInlineQuery

public struct AnswerInlineQuery : Codable, Equatable, TDFunction

Sets the result of an inline query; for bots only

  • Undocumented

    Declaration

    Swift

    public typealias Result = Ok
  • Identifier of the inline query

    Declaration

    Swift

    public let inlineQueryId: TDInt64
  • True, if the result of the query can be cached for the specified user

    Declaration

    Swift

    public let isPersonal: Bool
  • The results of the query

    Declaration

    Swift

    public let results: [InputInlineQueryResult]
  • Allowed time to cache the results of the query, in seconds

    Declaration

    Swift

    public let cacheTime: Int32
  • Offset for the next inline query; pass an empty string if there are no more results

    Declaration

    Swift

    public let nextOffset: String
  • If non-empty, this text should be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter

    Declaration

    Swift

    public let switchPmText: String
  • The parameter for the bot start message

    Declaration

    Swift

    public let switchPmParameter: String
  • Sets the result of an inline query; for bots only

    Declaration

    Swift

    public init(inlineQueryId: TDInt64, isPersonal: Bool, results: [InputInlineQueryResult], cacheTime: Int32, nextOffset: String, switchPmText: String, switchPmParameter: String)

    Parameters

    inlineQueryId

    Identifier of the inline query

    isPersonal

    True, if the result of the query can be cached for the specified user

    results

    The results of the query

    cacheTime

    Allowed time to cache the results of the query, in seconds

    nextOffset

    Offset for the next inline query; pass an empty string if there are no more results

    switchPmText

    If non-empty, this text should be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter

    switchPmParameter

    The parameter for the bot start message