From 6b27887bc3f5a03925e4da1a5539282984129559 Mon Sep 17 00:00:00 2001 From: eatmoreapple <15055461510@163.com> Date: Sat, 25 Sep 2021 20:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAMessage=E6=B7=BB=E5=8A=A0string?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_test.go | 1 - message.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bot_test.go b/bot_test.go index da5eadb..1e1a72d 100644 --- a/bot_test.go +++ b/bot_test.go @@ -39,7 +39,6 @@ func TestLogout(t *testing.T) { func TestMessageHandle(t *testing.T) { bot := DefaultBot(Desktop) bot.MessageHandler = func(msg *Message) { - fmt.Println(msg) if msg.IsText() && msg.Content == "ping" { msg.ReplyText("pong") } diff --git a/message.go b/message.go index 6481143..678180e 100644 --- a/message.go +++ b/message.go @@ -649,5 +649,5 @@ func (m *Message) IsComeFromGroup() bool { } func (m *Message) String() string { - return fmt.Sprintf("<%s:ID:%s>", m.MsgType, m.MsgId) + return fmt.Sprintf("<%s:%s>", m.MsgType, m.MsgId) }