This commit is contained in:
shoopea 2019-05-04 18:28:28 +08:00
parent 4f386157ac
commit b3d9f7eca5

3
td.go
View File

@ -107,9 +107,8 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
}
fmt.Printf("straight msg id : %d\n", m.ID64)
} else {
fmt.Println("msg.ForwardInfo : ", msg.ForwardInfo.GetMessageForwardInfoEnum())
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
fmt.Println("id : ")
fmt.Printf("forwarded msg id : %d\n", int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID))
m = ChatWarsMessage{
SenderUserID64: int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID),
Date: msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date,