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