InlineQueryResult

public indirect enum InlineQueryResult : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Represents a single result of an inline query

  • Represents a link to an article or web page

    • id: Unique identifier of the query result
    • url: URL of the result, if it exists
    • hideUrl: True, if the URL must be not shown
    • title: Title of the result
    • description: A short description of the result
    • thumbnail: Result thumbnail; may be null

    Declaration

    Swift

    case article(id: String, url: String, hideUrl: Bool, title: String, description: String, thumbnail: PhotoSize?)
  • Represents a user contact

    • id: Unique identifier of the query result
    • contact: A user contact
    • thumbnail: Result thumbnail; may be null

    Declaration

    Swift

    case contact(id: String, contact: Contact, thumbnail: PhotoSize?)
  • Represents a point on the map

    • id: Unique identifier of the query result
    • location: Location result
    • title: Title of the result
    • thumbnail: Result thumbnail; may be null

    Declaration

    Swift

    case location(id: String, location: Location, title: String, thumbnail: PhotoSize?)
  • Represents information about a venue

    • id: Unique identifier of the query result
    • venue: Venue result
    • thumbnail: Result thumbnail; may be null

    Declaration

    Swift

    case venue(id: String, venue: Venue, thumbnail: PhotoSize?)
  • Represents information about a game

    • id: Unique identifier of the query result
    • game: Game result

    Declaration

    Swift

    case game(id: String, game: Game)
  • Represents an animation file

    • id: Unique identifier of the query result
    • animation: Animation file
    • title: Animation title

    Declaration

    Swift

    case animation(id: String, animation: Animation, title: String)
  • Represents an audio file

    • id: Unique identifier of the query result
    • audio: Audio file

    Declaration

    Swift

    case audio(id: String, audio: Audio)
  • Represents a document

    • id: Unique identifier of the query result
    • document: Document
    • title: Document title
    • description: Document description

    Declaration

    Swift

    case document(id: String, document: Document, title: String, description: String)
  • Represents a photo

    • id: Unique identifier of the query result
    • photo: Photo
    • title: Title of the result, if known
    • description: A short description of the result, if known

    Declaration

    Swift

    case photo(id: String, photo: Photo, title: String, description: String)
  • Represents a sticker

    • id: Unique identifier of the query result
    • sticker: Sticker

    Declaration

    Swift

    case sticker(id: String, sticker: Sticker)
  • Represents a video

    • id: Unique identifier of the query result
    • video: Video
    • title: Title of the video
    • description: Description of the video

    Declaration

    Swift

    case video(id: String, video: Video, title: String, description: String)
  • Represents a voice note

    • id: Unique identifier of the query result
    • voiceNote: Voice note
    • title: Title of the voice note

    Declaration

    Swift

    case voiceNote(id: String, voiceNote: VoiceNote, title: String)