Keyboard
Predefined button colors.
An object that represents a keyboard button.
- Parameters
payload (
Any) – The payload to be sent on button click.text (
str) – The button text.color (
Optional[int]) – The button color.
An object that represents a keyboard.
- Parameters
lines (
Optional[Sequence]) – Initial keyboard lines.
Add a button to the last keyboard’s line.
- Parameters
button (
KeyboardButton) – The button to add.- Return type
None
Add an empty line to the keyboard.
- Return type
None