Skip to content

Commit c275806

Browse files
authored
add group_id for get_forward_msg (#1510)
1 parent d313eff commit c275806

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎coolq/api.go‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,8 +1572,9 @@ func (bot *CQBot) CQGetForwardMessage(resID string) global.MSG {
15721572
"user_id": n.SenderId,
15731573
"nickname": n.SenderName,
15741574
},
1575-
"time": n.Time,
1576-
"content": content,
1575+
"time": n.Time,
1576+
"content": content,
1577+
"group_id": n.GroupId,
15771578
}
15781579
}
15791580
return r
@@ -1973,6 +1974,15 @@ func (bot *CQBot) CQGetModelShow(model string) global.MSG {
19731974
})
19741975
}
19751976

1977+
// CQSendGroupSign 群打卡
1978+
//
1979+
// https://club.vip.qq.com/onlinestatus/set
1980+
// @route(send_group_sign)
1981+
func (bot *CQBot) CQSendGroupSign(groupID int64) global.MSG {
1982+
bot.Client.SendGroupSign(groupID)
1983+
return OK(nil)
1984+
}
1985+
19761986
// CQSetModelShow 设置在线机型
19771987
//
19781988
// https://club.vip.qq.com/onlinestatus/set

‎modules/api/api.go‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)