This commit is contained in:
shoopea 2019-05-04 18:26:53 +08:00
parent dccea513eb
commit 4f386157ac

3
td.go
View File

@ -105,10 +105,11 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
ChatID64: msg.ChatID, ChatID64: msg.ChatID,
Text: msg.Content.(*tdlib.MessageText).Text.Text, Text: msg.Content.(*tdlib.MessageText).Text.Text,
} }
fmt.Printf("straight msg id : %d\n", m.ID64)
} else { } else {
fmt.Println("msg.ForwardInfo : ", msg.ForwardInfo.GetMessageForwardInfoEnum()) fmt.Println("msg.ForwardInfo : ", msg.ForwardInfo.GetMessageForwardInfoEnum())
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType { if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
fmt.Println("id") fmt.Println("id : ")
m = ChatWarsMessage{ m = ChatWarsMessage{
SenderUserID64: int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID), SenderUserID64: int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID),
Date: msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date, Date: msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date,