From 00ae8e89c7373939034d5c327ba6f3d773374c78 Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 23 Jan 2022 02:20:26 +0800 Subject: [PATCH] add KeyboardController interface --- pkg/interact/reply.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/interact/reply.go b/pkg/interact/reply.go index 713162d3b..4efb9b2fb 100644 --- a/pkg/interact/reply.go +++ b/pkg/interact/reply.go @@ -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