package telegraml

  1. Overview
  2. Docs
Telegram Bot API for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v2.2.0.tar.gz
sha256=b07ec61353d3a245f81c4c510a41b58b75c5ea17f0b1bf3df22b1c3601bd45c4
md5=2fdd7c68eec4b7b904d9c4e536395a70

doc/telegraml/TelegramApi/InputMessageContent/index.html

Module TelegramApi.InputMessageContentSource

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

Sourcetype 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

Sourcetype 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

Sourcetype 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

Sourcetype 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

Sourcetype 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

Sourceval 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

Sourceval 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

Sourceval 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

Sourceval 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.