Module TelegramApi.InlineQuery.Out

module Out: sig .. end
This module is used to deal with outgoing replies to inline queries for an InlineQuery bot

type article = {
   id : string;
   title : string;
   input_message_content : TelegramApi.InputMessageContent.input_message_content;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   url : string option;
   hide_url : bool option;
   description : string option;
   thumb_url : string option;
   thumb_width : int option;
   thumb_height : int option;
}
Represents an article sent as a reply

Represents a photo (jpeg) sent as a reply

type photo = {
   id : string;
   photo_url : string;
   thumb_url : string;
   photo_width : int option;
   photo_height : int option;
   title : string option;
   description : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a gif sent as a reply
type gif = {
   id : string;
   gif_url : string;
   gif_width : int option;
   gif_height : int option;
   thumb_url : string;
   title : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a gif sent as a reply, but converted to an mp4 video file
type mpeg4gif = {
   id : string;
   mpeg4_url : string;
   mpeg4_width : int option;
   mpeg4_height : int option;
   thumb_url : string;
   title : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a video sent as a reply
type video = {
   id : string;
   video_url : string;
   mime_type : string;
   thumb_url : string;
   title : string;
   caption : string option;
   video_width : int option;
   video_height : int option;
   video_duration : int option;
   description : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents an audio file (mp3) sent as a reply
type audio = {
   id : string;
   audio_url : string;
   title : string;
   performer : string option;
   audio_duration : int option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a voice recording (ogg) sent as a reply
type voice = {
   id : string;
   voice_url : string;
   title : string;
   voice_duration : int option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a generic file/document (.pdf/.zip supported) sent as a reply
type document = {
   id : string;
   title : string;
   caption : string option;
   document_url : string;
   mime_type : string;
   description : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
   thumb_url : string option;
   thumb_width : int option;
   thumb_height : int option;
}
Represents a location on a map (usually the user's location)
type location = {
   id : string;
   latitude : float;
   longitude : float;
   title : string;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
   thumb_url : string option;
   thumb_width : int option;
   thumb_height : int option;
}
Represents a venue for an event set by the user
type venue = {
   id : string;
   latitude : float;
   longitude : float;
   title : string;
   address : string;
   foursquare_id : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
   thumb_url : string option;
   thumb_width : int option;
   thumb_height : int option;
}
Represents contact info for a user being sent
type contact = {
   id : string;
   phone_number : string;
   first_name : string;
   last_name : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
   thumb_url : string option;
   thumb_width : int option;
   thumb_height : int option;
}
Represents a photo, which has already been uploaded to the Telegram servers, sent as a reply
type cached_photo = {
   id : string;
   photo_file_id : string;
   title : string option;
   description : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a gif, which has already been uploaded to the Telegram servers, sent as a reply
type cached_gif = {
   id : string;
   gif_file_id : string;
   title : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a gif, which has already been uploaded to the Telegram servers, sent as a reply, but converted to an mp4 video file
type cached_mpeg4gif = {
   id : string;
   mpeg4_file_id : string;
   title : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a link to a sticker stored on the Telegram servers
type cached_sticker = {
   id : string;
   sticker_file_id : string;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a file (PDF or ZIP), which has already been uploaded to the Telegram servers, sent as a reply
type cached_document = {
   id : string;
   title : string;
   document_file_id : string;
   description : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a video, which has already been uploaded to the Telegram servers, sent as a reply
type cached_video = {
   id : string;
   video_file_id : string;
   title : string;
   description : string option;
   caption : string option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents a voice recording (OGG), which has already been uploaded to the Telegram servers, sent as a reply
type cached_voice = {
   id : string;
   voice_file_id : string;
   title : string;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
Represents an audio clip (MP3), which has already been uploaded to the Telegram servers, sent as a reply
type cached_audio = {
   id : string;
   audio_file_id : string;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
   input_message_content : TelegramApi.InputMessageContent.input_message_content option;
}
type inline_query_result = 
| Article of article
| Photo of photo
| Gif of gif
| Mpeg4Gif of mpeg4gif
| Video of video
| Audio of audio
| Voice of voice
| Document of document
| Location of location
| Venue of venue
| Contact of contact
| CachedPhoto of cached_photo
| CachedGif of cached_gif
| CachedMpeg4Gif of cached_mpeg4gif
| CachedSticker of cached_sticker
| CachedDocument of cached_document
| CachedVideo of cached_video
| CachedVoice of cached_voice
| CachedAudio of cached_audio
Represents all the replies that can be given to an inline query
val create_article : id:string ->
title:string ->
input_message_content:TelegramApi.InputMessageContent.input_message_content ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?url:string ->
?hide_url:bool ->
?description:string ->
?thumb_url:string ->
?thumb_width:int ->
?thumb_height:int -> unit -> inline_query_result
Create an Article : inline_query_result in a concise manner

Create a Photo : inline_query_result in a concise manner

val create_photo : id:string ->
photo_url:string ->
thumb_url:string ->
?photo_width:int ->
?photo_height:int ->
?title:string ->
?description:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a Gif : inline_query_result in a concise manner
val create_gif : id:string ->
gif_url:string ->
?gif_width:int ->
?gif_height:int ->
thumb_url:string ->
?title:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create an Mpeg4Gif : inline_query_result in a concise manner
val create_mpeg4gif : id:string ->
mpeg4_url:string ->
?mpeg4_width:int ->
?mpeg4_height:int ->
thumb_url:string ->
?title:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a Video : inline_query_result in a concise manner
val create_video : id:string ->
video_url:string ->
mime_type:string ->
thumb_url:string ->
title:string ->
?caption:string ->
?video_width:int ->
?video_height:int ->
?video_duration:int ->
?description:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create an Audio : inline_query_result in a concise manner
val create_audio : id:string ->
audio_url:string ->
title:string ->
?performer:string ->
?audio_duration:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a Voice : inline_query_result in a concise manner
val create_voice : id:string ->
voice_url:string ->
title:string ->
?voice_duration:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a Document : inline_query_result in a concise manner
val create_document : id:string ->
title:string ->
?caption:string ->
document_url:string ->
mime_type:string ->
?description:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
?thumb_url:string ->
?thumb_width:int ->
?thumb_height:int -> unit -> inline_query_result
Create a Location : inline_query_result in a concise manner
val create_location : id:string ->
latitude:float ->
longitude:float ->
title:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
?thumb_url:string ->
?thumb_width:int ->
?thumb_height:int -> unit -> inline_query_result
Create a Venue : inline_query_result in a concise manner
val create_venue : id:string ->
latitude:float ->
longitude:float ->
title:string ->
address:string ->
?foursquare_id:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
?thumb_url:string ->
?thumb_width:int ->
?thumb_height:int -> unit -> inline_query_result
Create a Contact : inline_query_result in a concise manner
val create_contact : id:string ->
phone_number:string ->
first_name:string ->
?last_name:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
?thumb_url:string ->
?thumb_width:int ->
?thumb_height:int -> unit -> inline_query_result
Create a CachedPhoto : inline_query_result in a concise manner
val create_cached_photo : id:string ->
photo_file_id:string ->
?title:string ->
?description:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedGif : inline_query_result in a concise manner
val create_cached_gif : id:string ->
gif_file_id:string ->
?title:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedMpeg4Gif : inline_query_result in a concise manner
val create_cached_mpeg4gif : id:string ->
mpeg4_file_id:string ->
?title:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedSticker : inline_query_result in a concise manner
val create_cached_sticker : id:string ->
sticker_file_id:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedDocument : inline_query_result in a concise manner
val create_cached_document : id:string ->
title:string ->
document_file_id:string ->
?description:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedVideo : inline_query_result in a concise manner
val create_cached_video : id:string ->
video_file_id:string ->
title:string ->
?description:string ->
?caption:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedVoice : inline_query_result in a concise manner
val create_cached_voice : id:string ->
voice_file_id:string ->
title:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Create a CachedAudio : inline_query_result in a concise manner
val create_cached_audio : id:string ->
audio_file_id:string ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
?input_message_content:TelegramApi.InputMessageContent.input_message_content ->
unit -> inline_query_result
Prepare an inline_query_result for sending
val prepare : inline_query_result -> Yojson.Safe.json