From 5bb430469ab6d0d932322c8693481358b415a103 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 20 Dec 2019 18:25:54 +0800 Subject: [PATCH] fix --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index dd26db7..c0ed50c 100644 --- a/main.go +++ b/main.go @@ -454,7 +454,7 @@ func ListenGuild(c *tdlib.Client) { inputMsgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(msgText, nil), true, true) c.SendMessage(chat_guild, 0, false, false, nil, inputMsgTxt) msgText = fmt.Sprintf("/g_withdraw %s %d\n", m.Item, m.Quantity) - inputMsgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(msgText, nil), true, true) + inputMsgTxt = tdlib.NewInputMessageText(tdlib.NewFormattedText(msgText, nil), true, true) msgMutex.Lock() sendMsg, _ := c.SendMessage(user_chtwrsbot, 0, false, false, nil, inputMsgTxt) msgID64 = sendMsg.ID