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/tg/command.go

19 lines
281 B
Go
Raw Normal View History

2016-02-08 13:47:10 +00:00
package tg
2016-02-08 16:52:13 +00:00
type ClientCommandType uint
const (
2016-02-09 10:01:05 +00:00
CmdSendTextMessage ClientCommandType = 1
2016-02-08 16:52:13 +00:00
)
2016-02-09 10:01:05 +00:00
type ClientTextMessageData struct {
2016-02-09 10:33:38 +00:00
ChatID int
Text string
ReplyID *int
2016-02-08 16:52:13 +00:00
}
2016-02-08 13:47:10 +00:00
type ClientCommand struct {
2016-02-09 10:01:05 +00:00
Type ClientCommandType
TextMessageData *ClientTextMessageData
2016-02-08 13:47:10 +00:00
}