This commit is contained in:
shoopea 2019-05-04 18:30:28 +08:00
parent 8fd67b0551
commit 046d47bc52

2
td.go
View File

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