Skip to content

Commit

Permalink
add group_id for get_forward_msg (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
synodriver authored May 27, 2022
1 parent d313eff commit c275806
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions coolq/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1572,8 +1572,9 @@ func (bot *CQBot) CQGetForwardMessage(resID string) global.MSG {
"user_id": n.SenderId,
"nickname": n.SenderName,
},
"time": n.Time,
"content": content,
"time": n.Time,
"content": content,
"group_id": n.GroupId,
}
}
return r
Expand Down Expand Up @@ -1973,6 +1974,15 @@ func (bot *CQBot) CQGetModelShow(model string) global.MSG {
})
}

// CQSendGroupSign 群打卡
//
// https://club.vip.qq.com/onlinestatus/set
// @route(send_group_sign)
func (bot *CQBot) CQSendGroupSign(groupID int64) global.MSG {
bot.Client.SendGroupSign(groupID)
return OK(nil)
}

// CQSetModelShow 设置在线机型
//
// https://club.vip.qq.com/onlinestatus/set
Expand Down
3 changes: 3 additions & 0 deletions modules/api/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c275806

Please sign in to comment.