Documentation
¶
Index ¶
- type DingTalkChannel
- func (c *DingTalkChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
- func (c *DingTalkChannel) SendDirectReply(ctx context.Context, sessionWebhook, content string) error
- func (c *DingTalkChannel) Start(ctx context.Context) error
- func (c *DingTalkChannel) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DingTalkChannel ¶
type DingTalkChannel struct {
*channels.BaseChannel
// contains filtered or unexported fields
}
DingTalkChannel implements the Channel interface for DingTalk (钉钉) It uses WebSocket for receiving messages via stream mode and API for sending
func NewDingTalkChannel ¶
func NewDingTalkChannel(cfg config.DingTalkConfig, messageBus *bus.MessageBus) (*DingTalkChannel, error)
NewDingTalkChannel creates a new DingTalk channel instance
func (*DingTalkChannel) Send ¶
func (c *DingTalkChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
Send sends a message to DingTalk via the chatbot reply API
func (*DingTalkChannel) SendDirectReply ¶
func (c *DingTalkChannel) SendDirectReply(ctx context.Context, sessionWebhook, content string) error
SendDirectReply sends a direct reply using the session webhook
Click to show internal directories.
Click to hide internal directories.