module Out: sig
.. end
This module is used to deal with outgoing replies to inline queries for an InlineQuery bot
type
article = {
}
Represents an article sent as a reply
Represents a photo (jpeg) sent as a reply
type
photo = {
}
Represents a gif sent as a reply
type
gif = {
}
Represents a gif sent as a reply, but converted to an mp4 video file
type
mpeg4gif = {
}
Represents a video sent as a reply
type
video = {
}
Represents an audio file (mp3) sent as a reply
type
audio = {
}
Represents a voice recording (ogg) sent as a reply
type
voice = {
}
Represents a generic file/document (.pdf/.zip supported) sent as a reply
type
document = {
}
Represents a location on a map (usually the user's location)
type
location = {
}
Represents a venue for an event set by the user
type
venue = {
}
Represents contact info for a user being sent
type
contact = {
}
Represents a photo, which has already been uploaded to the Telegram servers, sent as a reply
type
cached_photo = {
}
Represents a gif, which has already been uploaded to the Telegram servers, sent as a reply
type
cached_gif = {
}
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 = {
}
Represents a link to a sticker stored on the Telegram servers
type
cached_sticker = {
}
Represents a file (PDF or ZIP), which has already been uploaded to the Telegram servers, sent as a reply
type
cached_document = {
}
Represents a video, which has already been uploaded to the Telegram servers, sent as a reply
type
cached_video = {
}
Represents a voice recording (OGG), which has already been uploaded to the Telegram servers, sent as a reply
type
cached_voice = {
}
Represents an audio clip (MP3), which has already been uploaded to the Telegram servers, sent as a reply
type
cached_audio = {
}
type
inline_query_result =
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