qbtrade/pkg/interact/responder.go

17 lines
430 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
package interact
// Responder defines the logic of responding the message
type Responder func(session Session, message string, reply Reply, ctxObjects ...interface{}) error
type CallbackResponder interface {
SetCallbackResponder(responder Responder)
}
type TextMessageResponder interface {
SetTextMessageResponder(responder Responder)
}
type CommandResponder interface {
AddCommand(command *Command, responder Responder)
}