This commit is contained in:
shoopea 2021-11-11 23:18:04 +08:00
parent 22268986e3
commit 4308dcf9f9

View File

@ -731,7 +731,7 @@ func ForwardMsg(c *tdlib.Client, msgID int64, fromChatID int64, toChatID int64)
msgIDs[0] = msgID msgIDs[0] = msgID
msgs, err := c.ForwardMessages(toChatID, fromChatID, msgIDs, false, false, false) msgs, err := c.ForwardMessages(toChatID, fromChatID, msgIDs, false, false, false)
if err != nil { if err != nil {
fmt.Printf("ForwardMsg (error) : %s\n", err) fmt.Printf("ForwardMsg (error) : %s\n", err.Error())
} }
if msgs != nil { if msgs != nil {
return msgs.Messages[0].ID return msgs.Messages[0].ID