package telegraml

  1. Overview
  2. Docs
val token : string

The API token to use for the bot. Warning: please load this in when the bot starts or use ppx_blob to load this in at compile-time and add the blob to your .gitignore

val command_postfix : string option

An optional postfix to require after commands, usually the bots username (so /hello@mybot will be ignored by @yourbot)

val commands : Command.command list

The list of commands that the bot will be able to use

The function to call on inline queries

The function to call on callback queries

val new_chat_member : Chat.chat -> User.user -> Command.action

Called whenever a new user is added to or joins a chat

val left_chat_member : Chat.chat -> User.user -> Command.action

Called whenever a user leaves a chat

val new_chat_title : Chat.chat -> string -> Command.action

Called when the title for a chat is changed

val new_chat_photo : Chat.chat -> PhotoSize.photo_size list -> Command.action

Called whenever a new chat photo is set or the current one is changed

val delete_chat_photo : Chat.chat -> Command.action

Called whenever a chat's photo gets deleted

val group_chat_created : Chat.chat -> Command.action

Called whenever a chat turns into a group chat

val supergroup_chat_created : Chat.chat -> Command.action

Called whenever a chat turns into a supergroup chat

val channel_chat_created : Chat.chat -> Command.action

Called whenever a chat turns into a channel

val migrate_to_chat_id : Chat.chat -> int -> Command.action

Called whenever a chat migrates to a new chat id

val migrate_from_chat_id : Chat.chat -> int -> Command.action

Called whenever a chat has been migrated from another chat id

val pinned_message : Chat.chat -> Message.message -> Command.action

Called whenever a certain message is pinned for a chat

OCaml

Innovation. Community. Security.