This commit is contained in:
shoopea 2019-12-20 18:25:54 +08:00
parent 4b06fb4b86
commit 5bb430469a

View File

@ -454,7 +454,7 @@ func ListenGuild(c *tdlib.Client) {
inputMsgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(msgText, nil), true, true) inputMsgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(msgText, nil), true, true)
c.SendMessage(chat_guild, 0, false, false, nil, inputMsgTxt) c.SendMessage(chat_guild, 0, false, false, nil, inputMsgTxt)
msgText = fmt.Sprintf("/g_withdraw %s %d\n", m.Item, m.Quantity) 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() msgMutex.Lock()
sendMsg, _ := c.SendMessage(user_chtwrsbot, 0, false, false, nil, inputMsgTxt) sendMsg, _ := c.SendMessage(user_chtwrsbot, 0, false, false, nil, inputMsgTxt)
msgID64 = sendMsg.ID msgID64 = sendMsg.ID