InputInlineQueryResult
public indirect enum InputInlineQueryResult : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Represents a single result of an inline query; for bots only
-
animatedGif(id:title:thumbnailUrl:gifUrl:gifDuration:gifWidth:gifHeight:replyMarkup:inputMessageContent:)
Represents a link to an animated GIF
- id: Unique identifier of the query result
- title: Title of the query result
- thumbnailUrl: URL of the static result thumbnail (JPEG or GIF), if it exists
- gifUrl: The URL of the GIF-file (file size must not exceed 1MB)
- gifDuration: Duration of the GIF, in seconds
- gifWidth: Width of the GIF
- gifHeight: Height of the GIF
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case animatedGif(id: String, title: String, thumbnailUrl: String, gifUrl: String, gifDuration: Int32, gifWidth: Int32, gifHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
animatedMpeg4(id:title:thumbnailUrl:mpeg4Url:mpeg4Duration:mpeg4Width:mpeg4Height:replyMarkup:inputMessageContent:)
Represents a link to an animated (i.e. without sound) H.264/MPEG-4 AVC video
- id: Unique identifier of the query result
- title: Title of the result
- thumbnailUrl: URL of the static result thumbnail (JPEG or GIF), if it exists
- mpeg4Url: The URL of the MPEG4-file (file size must not exceed 1MB)
- mpeg4Duration: Duration of the video, in seconds
- mpeg4Width: Width of the video
- mpeg4Height: Height of the video
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case animatedMpeg4(id: String, title: String, thumbnailUrl: String, mpeg4Url: String, mpeg4Duration: Int32, mpeg4Width: Int32, mpeg4Height: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
article(id:url:hideUrl:title:description:thumbnailUrl:thumbnailWidth:thumbnailHeight:replyMarkup:inputMessageContent:)
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
- thumbnailUrl: URL of the result thumbnail, if it exists
- thumbnailWidth: Thumbnail width, if known
- thumbnailHeight: Thumbnail height, if known
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case article(id: String, url: String, hideUrl: Bool, title: String, description: String, thumbnailUrl: String, thumbnailWidth: Int32, thumbnailHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents a link to an MP3 audio file
- id: Unique identifier of the query result
- title: Title of the audio file
- performer: Performer of the audio file
- audioUrl: The URL of the audio file
- audioDuration: Audio file duration, in seconds
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAudio, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case audio(id: String, title: String, performer: String, audioUrl: String, audioDuration: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents a user contact
- id: Unique identifier of the query result
- contact: User contact
- thumbnailUrl: URL of the result thumbnail, if it exists
- thumbnailWidth: Thumbnail width, if known
- thumbnailHeight: Thumbnail height, if known
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case contact(id: String, contact: Contact, thumbnailUrl: String, thumbnailWidth: Int32, thumbnailHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
document(id:title:description:documentUrl:mimeType:thumbnailUrl:thumbnailWidth:thumbnailHeight:replyMarkup:inputMessageContent:)
Represents a link to a file
- id: Unique identifier of the query result
- title: Title of the resulting file
- description: Short description of the result, if known
- documentUrl: URL of the file
- mimeType: MIME type of the file content; only “application/pdf” and “application/zip” are currently allowed
- thumbnailUrl: The URL of the file thumbnail, if it exists
- thumbnailWidth: Width of the thumbnail
- thumbnailHeight: Height of the thumbnail
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageDocument, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case document(id: String, title: String, description: String, documentUrl: String, mimeType: String, thumbnailUrl: String, thumbnailWidth: Int32, thumbnailHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents a game
- id: Unique identifier of the query result
- gameShortName: Short name of the game
- replyMarkup: Message reply markup. Must be of type replyMarkupInlineKeyboard or null
Declaration
Swift
case game(id: String, gameShortName: String, replyMarkup: ReplyMarkup)
-
location(id:location:livePeriod:title:thumbnailUrl:thumbnailWidth:thumbnailHeight:replyMarkup:inputMessageContent:)
Represents a point on the map
- id: Unique identifier of the query result
- location: Location result
- livePeriod: Amount of time relative to the message sent time until the location can be updated, in seconds
- title: Title of the result
- thumbnailUrl: URL of the result thumbnail, if it exists
- thumbnailWidth: Thumbnail width, if known
- thumbnailHeight: Thumbnail height, if known
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case location(id: String, location: Location, livePeriod: Int32, title: String, thumbnailUrl: String, thumbnailWidth: Int32, thumbnailHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
photo(id:title:description:thumbnailUrl:photoUrl:photoWidth:photoHeight:replyMarkup:inputMessageContent:)
Represents link to a JPEG image
- id: Unique identifier of the query result
- title: Title of the result, if known
- description: A short description of the result, if known
- thumbnailUrl: URL of the photo thumbnail, if it exists
- photoUrl: The URL of the JPEG photo (photo size must not exceed 5MB)
- photoWidth: Width of the photo
- photoHeight: Height of the photo
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessagePhoto, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case photo(id: String, title: String, description: String, thumbnailUrl: String, photoUrl: String, photoWidth: Int32, photoHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents a link to a WEBP or TGS sticker
- id: Unique identifier of the query result
- thumbnailUrl: URL of the sticker thumbnail, if it exists
- stickerUrl: The URL of the WEBP or TGS sticker (sticker file size must not exceed 5MB)
- stickerWidth: Width of the sticker
- stickerHeight: Height of the sticker
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, inputMessageSticker, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case sticker(id: String, thumbnailUrl: String, stickerUrl: String, stickerWidth: Int32, stickerHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents information about a venue
- id: Unique identifier of the query result
- venue: Venue result
- thumbnailUrl: URL of the result thumbnail, if it exists
- thumbnailWidth: Thumbnail width, if known
- thumbnailHeight: Thumbnail height, if known
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case venue(id: String, venue: Venue, thumbnailUrl: String, thumbnailWidth: Int32, thumbnailHeight: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
video(id:title:description:thumbnailUrl:videoUrl:mimeType:videoWidth:videoHeight:videoDuration:replyMarkup:inputMessageContent:)
Represents a link to a page containing an embedded video player or a video file
- id: Unique identifier of the query result
- title: Title of the result
- description: A short description of the result, if known
- thumbnailUrl: The URL of the video thumbnail (JPEG), if it exists
- videoUrl: URL of the embedded video player or video file
- mimeType: MIME type of the content of the video URL, only “text/html” or “video/mp4” are currently supported
- videoWidth: Width of the video
- videoHeight: Height of the video
- videoDuration: Video duration, in seconds
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageVideo, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case video(id: String, title: String, description: String, thumbnailUrl: String, videoUrl: String, mimeType: String, videoWidth: Int32, videoHeight: Int32, videoDuration: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)
-
Represents a link to an opus-encoded audio file within an OGG container, single channel audio
- id: Unique identifier of the query result
- title: Title of the voice note
- voiceNoteUrl: The URL of the voice note file
- voiceNoteDuration: Duration of the voice note, in seconds
- replyMarkup: The message reply markup. Must be of type replyMarkupInlineKeyboard or null
- inputMessageContent: The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageVoiceNote, InputMessageLocation, InputMessageVenue or InputMessageContact
Declaration
Swift
case voiceNote(id: String, title: String, voiceNoteUrl: String, voiceNoteDuration: Int32, replyMarkup: ReplyMarkup, inputMessageContent: InputMessageContent)