Keyboard Component
Abstract class which extends Component
instance.
Each class should implement render
function
example.ts
import { KeyboardComponent } from "@tlgr/component";
class MyComponent extends KeyboardComponent {
render() {
// returns KeyboardButton from telegram API
// e.g. Markup.button.callback('my button');
}
}
extends​
constructor(bot)
​
added in 1.1.0 methods​
render()​
added in 1.1.0Returns Telegram keyboard button isntance.