Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType uint32
const ( // EventSendTextMessage 私聊消息 EventSendTextMessage EventType = 100 // EventSendGroupMessage 群聊消息 EventSendGroupMessage = 102 )
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
func NewRobot ¶
func NewRobot(robotID string, opts ...RobotOption) *Robot
NewRobot to create a robot.
func (*Robot) SendGroupMessage ¶
SendGroupMessage to send group message.
type RobotOption ¶
type RobotOption func(*Robot)
func WithTimeout ¶
func WithTimeout(timeout time.Duration) RobotOption
WithTimeout set post timeout.
Click to show internal directories.
Click to hide internal directories.