13 lines
230 B
Go
13 lines
230 B
Go
package main
|
|
|
|
import (
|
|
"github.com/hamcha/clessy/tg"
|
|
)
|
|
|
|
func executeClientCommand(action tg.ClientCommand) {
|
|
switch action.Type {
|
|
case tg.CmdSendTextMessage:
|
|
data := *(action.TextMessageData)
|
|
api.SendTextMessage(data)
|
|
}
|
|
}
|