package telegraml

  1. Overview
  2. Docs

Module Telegram.ApiSource

The base module for the API, equivalent to TelegramApi

include module type of struct include TelegramApi end
Sourceexception ApiException of string

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

Sourcemodule ParseMode = TelegramApi.ParseMode

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

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

Sourcemodule InputFile = TelegramApi.InputFile

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

Sourcemodule MessageEntity = TelegramApi.MessageEntity

Used to represent formatting options for a message's text

Sourcemodule KeyboardButton = TelegramApi.KeyboardButton

Used to represent an individual button on a custom keyboard

Sourcemodule InlineKeyboardButton = TelegramApi.InlineKeyboardButton

Used to represent an individual button on a custom inline keyboard

Sourcemodule ReplyMarkup = TelegramApi.ReplyMarkup

Markup options for users to reply to sent messages

Sourcemodule PhotoSize = TelegramApi.PhotoSize

This module is used for all images sent in chats

Sourcemodule Document = TelegramApi.Document
Sourcemodule Sticker = TelegramApi.Sticker
Sourcemodule Contact = TelegramApi.Contact
Sourcemodule Location = TelegramApi.Location
Sourcemodule UserProfilePhotos = TelegramApi.UserProfilePhotos
Sourcemodule Message = TelegramApi.Message

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

Sourcemodule CallbackQuery = TelegramApi.CallbackQuery

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

Sourcemodule ChatMember = TelegramApi.ChatMember

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

Sourcemodule InputMessageContent = TelegramApi.InputMessageContent

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

Sourcemodule InlineQuery = TelegramApi.InlineQuery

This module is used for InlineQuery bots

Sourcemodule ChatAction = TelegramApi.ChatAction

Actions that can be sent as user statuses

Sourcemodule Update = TelegramApi.Update
Sourcemodule Result = TelegramApi.Result

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

Sourcemodule Command = TelegramApi.Command
Sourcemodule type BOT = TelegramApi.BOT

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.

Sourcemodule type TELEGRAM_BOT = TelegramApi.TELEGRAM_BOT

TELEGRAM_BOT represents the interface to a running bot

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