(grp int64, ctx *zero.Ctx)
| 6 | ) |
| 7 | |
| 8 | func (t *Timer) sendmsg(grp int64, ctx *zero.Ctx) { |
| 9 | ctx.Event = new(zero.Event) |
| 10 | ctx.Event.GroupID = grp |
| 11 | if t.URL == "" { |
| 12 | ctx.SendChain(atall, message.Text(t.Alert)) |
| 13 | } else { |
| 14 | ctx.SendChain(atall, message.Text(t.Alert), message.Image(t.URL).Add("cache", "0")) |
| 15 | } |
| 16 | } |
no outgoing calls
no test coverage detected