add KeyboardController interface

This commit is contained in:
c9s 2022-01-23 02:20:26 +08:00
parent 01afe9c14e
commit ef84742eb7

View File

@ -46,6 +46,12 @@ type Reply interface {
RemoveKeyboard()
}
// KeyboardController is used when messenger supports keyboard controls
type KeyboardController interface {
// RemoveKeyboard hides the keyboard from the client user interface
RemoveKeyboard()
}
// ButtonReply can be used if your reply needs button user interface.
type ButtonReply interface {
// AddButton adds the button to the reply