1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-06 01:20:24 +08:00
This commit is contained in:
源文雨
2022-06-02 15:29:13 +08:00
parent efa699c38f
commit c1610cd5be
2 changed files with 2 additions and 2 deletions

View File

@@ -13,6 +13,6 @@ func init() {
return
}
msg := ctx.Value.(*tgba.Message)
ctx.Caller.Send(tgba.NewMessage(msg.Chat.ID, args))
_, _ = ctx.Caller.Send(tgba.NewMessage(msg.Chat.ID, args))
})
}

View File

@@ -11,7 +11,7 @@ func main() {
rei.OnMessageFullMatch("help").SetBlock(true).SecondPriority().
Handle(func(ctx *rei.Ctx) {
msg := ctx.Value.(*tgba.Message)
ctx.Caller.Send(tgba.NewMessage(msg.Chat.ID, "echo string"))
_, _ = ctx.Caller.Send(tgba.NewMessage(msg.Chat.ID, "echo string"))
})
rei.Run(rei.Bot{
Token: "",