1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-05 00:50:25 +08:00

fix MustProvidePhoto

This commit is contained in:
源文雨
2022-10-04 18:28:09 +08:00
parent 6bc5f89ed3
commit 254271db0f

View File

@@ -367,7 +367,7 @@ func IsPhoto(ctx *Ctx) bool {
}
// MustProvidePhoto 消息不存在图片阻塞120秒至有图片超时返回 false
func MustProvidePhoto(ctx *Ctx, needphohint, failhint string) Rule {
func MustProvidePhoto(needphohint, failhint string) Rule {
return func(ctx *Ctx) bool {
msg, ok := ctx.Value.(*tgba.Message)
if ok && len(msg.Photo) > 0 { // 确保无空