This commit is contained in:
shoopea 2019-05-15 11:19:10 +08:00
parent a3669f5e43
commit 0c285f0c35

5
td.go
View File

@ -60,11 +60,6 @@ func ListenCW(c *tdlib.Client) {
updateMsg := (newMsg).(*tdlib.UpdateNewMessage) updateMsg := (newMsg).(*tdlib.UpdateNewMessage)
senderUserID := updateMsg.Message.SenderUserID senderUserID := updateMsg.Message.SenderUserID
if updateMsg.Message.Content.GetMessageContentEnum() == tdlib.MessageTextType { if updateMsg.Message.Content.GetMessageContentEnum() == tdlib.MessageTextType {
user, err := c.GetUser(senderUserID)
if err != nil {
fmt.Println("ListenCW:", err.Error())
}
txt := updateMsg.Message.Content.(*tdlib.MessageText).Text.Text txt := updateMsg.Message.Content.(*tdlib.MessageText).Text.Text
t := time.Now() t := time.Now()