From c1610cd5bee53465e95c53ad150f503b4178c41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 2 Jun 2022 15:29:13 +0800 Subject: [PATCH] mk lt hp --- example/echo/main.go | 2 +- example/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/echo/main.go b/example/echo/main.go index e668061..51abdac 100644 --- a/example/echo/main.go +++ b/example/echo/main.go @@ -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)) }) } diff --git a/example/main.go b/example/main.go index 80b136b..a77b0ef 100644 --- a/example/main.go +++ b/example/main.go @@ -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: "",