Module TelegramApi.InputMessageContent

module InputMessageContent: sig .. end
This module is used to deal with the content being sent as the result of an inline query

type text = {
   message_text : string;
   parse_mode : TelegramApi.ParseMode.parse_mode option;
   disable_web_page_preview : bool;
}
Represents the content of a text message to be sent as the result of an inline query

Represents the content of a location message to be sent as the result of an inline query

type location = {
   latitude : float;
   longitude : float;
}
Represents the content of a venue message to be sent as the result of an inline query
type venue = {
   latitude : float;
   longitude : float;
   title : string;
   address : string;
   foursquare_id : string option;
}
Represents the content of a contact message to be sent as the result of an inline query
type contact = {
   phone_number : string;
   first_name : string;
   last_name : string option;
}
Represents the content of a message to be sent as the result of an inline query
type input_message_content = 
| Text of text
| Location of location
| Venue of venue
| Contact of contact
val create_text : message_text:string ->
?parse_mode:TelegramApi.ParseMode.parse_mode ->
?disable_web_page_preview:bool ->
unit -> input_message_content
Create a Text : input_message_content in a concise manner

Create a Location : input_message_content in a concise manner

val create_location : latitude:float ->
longitude:float ->
unit -> input_message_content
Create a Venue : input_message_content in a concise manner
val create_venue : latitude:float ->
longitude:float ->
title:string ->
address:string ->
?foursquare_id:string ->
unit -> input_message_content
Create a Contact : input_message_content in a concise manner
val create_contact : phone_number:string ->
first_name:string ->
?last_name:string ->
unit -> input_message_content
val prepare : input_message_content -> Yojson.Safe.json
Prepare input_message_content for sending by converting it to JSON