package telegraml
Telegram Bot API for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
v2.2.0.tar.gz
sha256=b07ec61353d3a245f81c4c510a41b58b75c5ea17f0b1bf3df22b1c3601bd45c4
md5=2fdd7c68eec4b7b904d9c4e536395a70
doc/telegraml/TelegramApi/ReplyMarkup/index.html
Module TelegramApi.ReplyMarkup
Source
Markup options for users to reply to sent messages
Source
type reply_keyboard_markup = {
keyboard : KeyboardButton.keyboard_button list list;
resize_keyboard : bool option;
one_time_keyboard : bool option;
selective : bool option;
}
Represents the custom keyboard type
Source
type inline_keyboard_markup = {
inline_keyboard : InlineKeyboardButton.inline_keyboard_button list list;
}
Represents a custom inline keyboard
Represents the request to hide a keyboard
Represents the request to force a reply
Source
type reply_markup =
| ReplyKeyboardMarkup of reply_keyboard_markup
| InlineKeyboardMarkup of inline_keyboard_markup
| ReplyKeyboardHide of reply_keyboard_hide
| ForceReply of force_reply
Represents all possible reply markup options
Source
val create_reply_keyboard_markup :
keyboard:KeyboardButton.keyboard_button list list ->
?resize_keyboard:bool option ->
?one_time_keyboard:bool option ->
?selective:bool option ->
unit ->
reply_markup
Create a ReplyKeyboardMarkup : reply_markup
in a concise way
Source
val create_inline_keyboard_markup :
inline_keyboard:InlineKeyboardButton.inline_keyboard_button list list ->
unit ->
reply_markup
Create an InlineKeyboardMarkup : reply_markup
in a concise way
Create a ReplyKeyboardHide : reply_markup
in a concise way
Create a ForceReply : reply_markup
in a concise way
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>