Skip to main content

Inline Component

Abstract class which extends Component instance.

Each class should implement render function

example.ts
import { InlineComponent } from "@tlgr/component";
class MyComponent extends InlineComponent {
render() {
// returns InlineKeyboardButton from telegram API
// e.g. Markup.button.callback('my button');
}
}

extends​

constructor(bot)​

added in 1.0.0

methods​

render([payload])​

  • payload - <Primitive> render data identifier.