package telegraml

  1. Overview
  2. Docs

Specifies the API used for creating Telegram bots, defined here.

exception ApiException of string

An exception thrown if some rules specified in the API are invalidated by incorrectly formatted data of some type

module ParseMode : sig ... end

This module deals with the parse mode used for formatting certain messages according to markup languages

module User : sig ... end
module Chat : sig ... end

Used to represent private messages, groupchats, and other types of Telegram chats

module InputFile : sig ... end

Used for handling, loading, and sending outgoing files in messages

module MessageEntity : sig ... end

Used to represent formatting options for a message's text

module KeyboardButton : sig ... end

Used to represent an individual button on a custom keyboard

module InlineKeyboardButton : sig ... end

Used to represent an individual button on a custom inline keyboard

module ReplyMarkup : sig ... end

Markup options for users to reply to sent messages

module PhotoSize : sig ... end

This module is used for all images sent in chats

module Audio : sig ... end
module Document : sig ... end
module Sticker : sig ... end
module Video : sig ... end
module Voice : sig ... end
module Contact : sig ... end
module Location : sig ... end
module Venue : sig ... end
module UserProfilePhotos : sig ... end
module Message : sig ... end
module File : sig ... end

This module is used for downloadable files uploaded to the Telegram servers

module CallbackQuery : sig ... end

This module is used for dealing with the results returned by clicking on callback buttons on inline keyboards

module ChatMember : sig ... end

This module is used to deal with information about an individual member of a chat

module InputMessageContent : sig ... end

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

module InlineQuery : sig ... end

This module is used for InlineQuery bots

module ChatAction : sig ... end

Actions that can be sent as user statuses

module Update : sig ... end
module Result : sig ... end

Used for representing results of various actions where a success or failure can occur. Contains helper functions to implement a monadic and functorial interface.

module Command : sig ... end
module type BOT = sig ... end

BOT is strictly used for customization of a TELEGRAM_BOT module. Once your customizations have been applied, pass it into Api.Mk to create the usable TELEGRAM_BOT interface.

module type TELEGRAM_BOT = sig ... end

TELEGRAM_BOT represents the interface to a running bot

module Mk (B : BOT) : TELEGRAM_BOT

Generate a bot's interface to allow for direct calls to functions

OCaml

Innovation. Community. Security.