add KeyboardController interface

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

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