Skip to content

Commit

Permalink
Beta96 (#250)
Browse files Browse the repository at this point in the history
* beta92

* beta95

* beta96
  • Loading branch information
Hoshinonyaruko authored Dec 16, 2023
1 parent b4fc2c0 commit 15edf8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handlers/send_group_forward_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func HandleSendGroupForwardMsg(client callapi.Client, api openapi.OpenAPI, apiv2
mylog.Printf("send_group_forward_msg: Messages 不是 []interface{} 类型")
return "", nil
}

var retmsg string
forwardMsgLimit := config.GetForwardMsgLimit() // 获取消息发送条数上限
count := 0

Expand Down Expand Up @@ -66,5 +66,6 @@ func HandleSendGroupForwardMsg(client callapi.Client, api openapi.OpenAPI, apiv2
count++
time.Sleep(500 * time.Millisecond) // 每条消息之间的延时
}
return "", nil
retmsg, _ = SendResponse(client, nil, &message)
return retmsg, nil
}
1 change: 1 addition & 0 deletions handlers/send_group_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

func init() {
callapi.RegisterHandler("send_group_msg", HandleSendGroupMsg)
callapi.RegisterHandler("send_to_group", HandleSendGroupMsg)
}

func HandleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openapi.OpenAPI, message callapi.ActionMessage) (string, error) {
Expand Down

0 comments on commit 15edf8d

Please sign in to comment.