mirror of
https://github.com/fumiama/ReiBot.git
synced 2026-06-10 13:00:40 +08:00
mk lt hp
This commit is contained in:
@@ -13,6 +13,6 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
msg := ctx.Value.(*tgba.Message)
|
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().
|
rei.OnMessageFullMatch("help").SetBlock(true).SecondPriority().
|
||||||
Handle(func(ctx *rei.Ctx) {
|
Handle(func(ctx *rei.Ctx) {
|
||||||
msg := ctx.Value.(*tgba.Message)
|
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{
|
rei.Run(rei.Bot{
|
||||||
Token: "",
|
Token: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user