GetInlineQueryResults

public struct GetInlineQueryResults : Codable, Equatable, TDFunction

Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires

  • Undocumented

    Declaration

    Swift

    public typealias Result = InlineQueryResults
  • The identifier of the target bot

    Declaration

    Swift

    public let botUserId: Int32
  • Identifier of the chat where the query was sent

    Declaration

    Swift

    public let chatId: Int53
  • Location of the user, only if needed

    Declaration

    Swift

    public let userLocation: Location
  • Text of the query

    Declaration

    Swift

    public let query: String
  • Offset of the first entry to return

    Declaration

    Swift

    public let offset: String
  • Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires

    Declaration

    Swift

    public init(botUserId: Int32, chatId: Int53, userLocation: Location, query: String, offset: String)

    Parameters

    botUserId

    The identifier of the target bot

    chatId

    Identifier of the chat where the query was sent

    userLocation

    Location of the user, only if needed

    query

    Text of the query

    offset

    Offset of the first entry to return