package telegraml
Telegram Bot API for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v2.2.0.tar.gz
sha256=b07ec61353d3a245f81c4c510a41b58b75c5ea17f0b1bf3df22b1c3601bd45c4
md5=2fdd7c68eec4b7b904d9c4e536395a70
doc/telegraml/TelegramActions/index.html
Module TelegramActions
Source
Source
val (/+) :
TelegramApi.Command.action ->
TelegramApi.Command.action ->
TelegramApi.Command.action
Chains two commands together (do one, then the other)
Pipes one command into the next (do one, and use its result)
Finish a sequence of commands using (/>)
Sequence a list of commands in the provided order
Examples:
command /> fun _ -> command2 /> finish
command /+ command2
sequence [ command; command2 ]
Source
val get_me :
and_then:
(TelegramApi.User.user TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val send_message :
chat_id:int ->
?parse_mode:TelegramApi.ParseMode.parse_mode ->
?disable_web_page_preview:bool ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
('a, unit, string, TelegramApi.Command.action) format4 ->
'a
Source
val forward_message :
chat_id:int ->
from_chat_id:int ->
?disable_notification:bool ->
message_id:int ->
TelegramApi.Command.action
Source
val send_chat_action :
chat_id:int ->
TelegramApi.ChatAction.action ->
TelegramApi.Command.action
Source
val send_photo :
chat_id:int ->
?caption:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_photo :
chat_id:int ->
?caption:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_audio :
chat_id:int ->
performer:string ->
title:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_audio :
chat_id:int ->
performer:string ->
title:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_document :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_document :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_sticker :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_sticker :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_video :
chat_id:int ->
?duration:int ->
?caption:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_video :
chat_id:int ->
?duration:int ->
?caption:string ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_voice :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
and_then:(string TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val resend_voice :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
string ->
TelegramApi.Command.action
Source
val send_location :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
latitude:float ->
longitude:float ->
TelegramApi.Command.action
Source
val send_venue :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
latitude:float ->
longitude:float ->
title:string ->
address:string ->
foursquare_id:string option ->
TelegramApi.Command.action
Source
val send_contact :
chat_id:int ->
?disable_notification:bool ->
?reply_to:int ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
phone_number:string ->
first_name:string ->
last_name:string option ->
TelegramApi.Command.action
Source
val get_user_profile_photos :
?offset:int ->
?limit:int ->
int ->
and_then:
(TelegramApi.UserProfilePhotos.user_profile_photos
TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_file :
string ->
and_then:
(TelegramApi.File.file TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_file' :
string ->
and_then:(string option -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val download_file :
TelegramApi.File.file ->
and_then:(string option -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_chat :
chat_id:int ->
and_then:
(TelegramApi.Chat.chat TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_chat_administrators :
chat_id:int ->
and_then:
(TelegramApi.ChatMember.chat_member list TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_chat_members_count :
chat_id:int ->
and_then:(int TelegramApi.Result.result -> TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val get_chat_member :
chat_id:int ->
user_id:int ->
and_then:
(TelegramApi.ChatMember.chat_member TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val answer_callback_query :
?text:string ->
?show_alert:bool ->
string ->
TelegramApi.Command.action
Source
val answer_inline_query :
?cache_time:int ->
?is_personal:bool ->
?next_offset:string ->
string ->
TelegramApi.InlineQuery.Out.inline_query_result list ->
TelegramApi.Command.action
Source
val edit_message_text :
id:[ `ChatMessageId of string * int | `InlineMessageId of string ] ->
?parse_mode:TelegramApi.ParseMode.parse_mode ->
?disable_web_page_preview:bool ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
('a, unit, string, TelegramApi.Command.action) format4 ->
'a
Source
val edit_message_caption :
id:[ `ChatMessageId of string * int | `InlineMessageId of string ] ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
('a, unit, string, TelegramApi.Command.action) format4 ->
'a
Source
val edit_message_reply_markup :
id:[ `ChatMessageId of string * int | `InlineMessageId of string ] ->
reply_markup:TelegramApi.ReplyMarkup.reply_markup ->
TelegramApi.Command.action
Source
val get_updates :
and_then:
(TelegramApi.Update.update list TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val peek_update :
and_then:
(TelegramApi.Update.update TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
Source
val pop_update :
?run_commands:bool ->
and_then:
(TelegramApi.Update.update TelegramApi.Result.result ->
TelegramApi.Command.action) ->
TelegramApi.Command.action
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>