This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues or pull requests.
clessy/broker/action.go

14 lines
230 B
Go
Raw Normal View History

2016-02-08 16:57:27 +00:00
package main
2016-02-08 13:47:10 +00:00
import (
2016-02-09 14:55:37 +00:00
"github.com/hamcha/clessy/tg"
2016-02-08 13:47:10 +00:00
)
func executeClientCommand(action tg.ClientCommand) {
2016-02-09 10:33:38 +00:00
switch action.Type {
case tg.CmdSendTextMessage:
data := *(action.TextMessageData)
api.SendTextMessage(data)
}
2016-02-08 13:47:10 +00:00
}