Skip to main content

Module keyboard

Module keyboard 

Source
Expand description

Inline keyboard builder: create reply markups without raw TL verbosity.

ยงExample

use ferogram::keyboard::{InlineKeyboard, Button};

let kb = InlineKeyboard::new()
.row([Button::callback("โœ… Yes", b"yes"),
      Button::callback("โŒ No",  b"no")])
.row([Button::url("๐Ÿ“– Docs", "https://docs.rs/ferogram")]);

// Pass to InputMessage:
// let msg = InputMessage::text("Choose:").keyboard(kb);

Structsยง

Button
A single inline keyboard button.
InlineKeyboard
Builder for an inline keyboard reply markup.
ReplyKeyboard
Builder for a reply keyboard (shown below the message input box).