client

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewFeiShuClient

func NewFeiShuClient(token string, keyWork string) *Client

func (*Client) Send

func (client *Client) Send(msg any) error

func (*Client) SendImageMessage

func (client *Client) SendImageMessage(imageKey string) error

func (*Client) SendInteractiveMessage

func (client *Client) SendInteractiveMessage() error

func (*Client) SendPostMessage

func (client *Client) SendPostMessage(title string, content [][]message.PostMessageContentPostZhCnContent) error

func (*Client) SendShareChatMessage

func (client *Client) SendShareChatMessage(shareChatId string) error

func (*Client) SendTextMessage

func (client *Client) SendTextMessage(text string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL