test
This commit is contained in:
parent
1421010036
commit
4bb8def4c9
6
td.go
6
td.go
@ -43,7 +43,7 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
Text: txt,
|
Text: txt,
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := strconv.ParseInt(updateMsg.Message.Date, 10, 64)
|
i, err := strconv.ParseInt(int64(updateMsg.Message.Date), 10, 64)
|
||||||
m.Date = time.Unix(i, 0)
|
m.Date = time.Unix(i, 0)
|
||||||
|
|
||||||
MQCWMsgQueue <- m
|
MQCWMsgQueue <- m
|
||||||
@ -122,7 +122,7 @@ 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,
|
||||||
}
|
}
|
||||||
i, err := strconv.ParseInt(msg.Date, 10, 64)
|
i, err := strconv.ParseInt(int64(msg.Date), 10, 64)
|
||||||
m.Date = time.Unix(i, 0)
|
m.Date = time.Unix(i, 0)
|
||||||
} else {
|
} else {
|
||||||
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
|
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
|
||||||
@ -133,7 +133,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
|
|||||||
ChatID64: 0,
|
ChatID64: 0,
|
||||||
Text: msg.Content.(*tdlib.MessageText).Text.Text,
|
Text: msg.Content.(*tdlib.MessageText).Text.Text,
|
||||||
}
|
}
|
||||||
i, err := strconv.ParseInt(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date, 10, 64)
|
i, err := strconv.ParseInt(int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date), 10, 64)
|
||||||
m.Date = time.Unix(i, 0)
|
m.Date = time.Unix(i, 0)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user