2022-01-14 03:43:27 +00:00
|
|
|
package interact
|
|
|
|
|
|
|
|
// Responder defines the logic of responding the message
|
2022-01-15 16:25:11 +00:00
|
|
|
type Responder func(session Session, message string, reply Reply, ctxObjects ...interface{}) error
|
2022-01-14 03:43:27 +00:00
|
|
|
|
2022-01-19 05:07:25 +00:00
|
|
|
type CallbackResponder interface {
|
|
|
|
SetCallbackResponder(responder Responder)
|
|
|
|
}
|
|
|
|
|
2022-01-14 03:43:27 +00:00
|
|
|
type TextMessageResponder interface {
|
|
|
|
SetTextMessageResponder(responder Responder)
|
|
|
|
}
|
|
|
|
|
|
|
|
type CommandResponder interface {
|
|
|
|
AddCommand(command *Command, responder Responder)
|
|
|
|
}
|