mirror of
https://github.com/fumiama/ReiBot.git
synced 2026-06-06 01:20:24 +08:00
mk lt hp
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user