package telegraml

  1. Overview
  2. Docs

This module is used to deal with the content being sent as the result of an inline query

type text = {
  1. message_text : string;
  2. parse_mode : ParseMode.parse_mode option;
  3. 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 = {
  1. latitude : float;
  2. longitude : float;
}

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

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

type venue = {
  1. latitude : float;
  2. longitude : float;
  3. title : string;
  4. address : string;
  5. foursquare_id : string option;
}

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

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

type contact = {
  1. phone_number : string;
  2. first_name : string;
  3. last_name : string option;
}

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

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

type input_message_content =
  1. | Text of text
  2. | Location of location
  3. | Venue of venue
  4. | Contact of contact

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

val create_text : message_text:string -> ?parse_mode: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 Location : input_message_content in a concise manner

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 Venue : input_message_content in a concise manner

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

Create a Contact : input_message_content in a concise manner

Prepare input_message_content for sending by converting it to JSON

OCaml

Innovation. Community. Security.