This commit is contained in:
shoopea 2019-05-04 18:47:23 +08:00
parent aff3949e07
commit c33c3ba90f

1
td.go
View File

@ -100,6 +100,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
lastParsedTime = time.Unix(int64(msg.Date), 0) lastParsedTime = time.Unix(int64(msg.Date), 0)
switch msg.Content.GetMessageContentEnum() { switch msg.Content.GetMessageContentEnum() {
case tdlib.MessageTextType: case tdlib.MessageTextType:
fmt.Printf("message : %s.\n", msg.Content.(*tdlib.MessageText).Text.Text)
if msg.ForwardInfo == nil { if msg.ForwardInfo == nil {
m = ChatWarsMessage{ m = ChatWarsMessage{
SenderUserID64: int64(msg.SenderUserID), SenderUserID64: int64(msg.SenderUserID),