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

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)
}
}