fix forward msg

This commit is contained in:
shoopea 2019-08-27 11:34:14 +08:00
parent c7645ba99c
commit 9bc8235cb2

2
td.go
View File

@ -231,7 +231,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
switch m.Type { switch m.Type {
case commandForwardMsg: case commandForwardMsg:
msgIDs := make([]int64, 1) msgIDs := make([]int64, 1)
msgIDs[0] = msgID msgIDs[0] = m.FromMsgID64
c.ForwardMessages(m.ToChatID64, m.FromChatID64, msgIDs, false, false, false) c.ForwardMessages(m.ToChatID64, m.FromChatID64, msgIDs, false, false, false)
case commandSendMsg: case commandSendMsg: