File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ type BotClient struct {
5252 Token string // 机器人令牌。
5353}
5454
55- // SendText 方法发送文本信息。
55+ // 方法发送文本信息。
5656// 目前只支持文本信息。信息内容需要包含指定关键字。
5757func (c BotClient ) SendText (ctx context.Context , msg string ) error {
5858 c .logger ().InfoContext (ctx , "发送文本消息" , slog .String ("msg" , msg ))
@@ -63,7 +63,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
6363 })
6464}
6565
66- // Send 方法发送信息。
66+ // 方法发送信息。
6767// 目前只支持文本信息。信息内容需要包含指定关键字。
6868func (c BotClient ) Send (ctx context.Context , msg Message ) error {
6969 c .logger ().InfoContext (ctx , "发送消息" , slog .String ("msgType" , msg .MsgType ))
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ type BotClient struct {
6060 Key string // 机器人令牌。
6161}
6262
63- // SendText 方法发送文本信息。
63+ // 方法发送文本信息。
6464// 目前只支持文本信息。
6565func (c BotClient ) SendText (ctx context.Context , msg string ) error {
6666 c .logger ().InfoContext (ctx , "发送文本消息" , slog .String ("msg" , msg ))
@@ -71,7 +71,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
7171 })
7272}
7373
74- // SendMarkdown 发送 Markdown 信息。
74+ // 发送 Markdown 信息。
7575func (c BotClient ) SendMarkdown (ctx context.Context , msg string ) error {
7676 c .logger ().InfoContext (ctx , "发送 Markdown 消息" , slog .String ("msg" , msg ))
7777
@@ -81,7 +81,7 @@ func (c BotClient) SendMarkdown(ctx context.Context, msg string) error {
8181 })
8282}
8383
84- // Send 方法发送信息。
84+ // 方法发送信息。
8585// 目前只支持文本信息。
8686func (c BotClient ) Send (ctx context.Context , msg Message ) error {
8787 c .logger ().InfoContext (ctx , "发送消息" , slog .String ("msgType" , msg .MsgType ))
You can’t perform that action at this time.
0 commit comments