This commit is contained in:
shoopea 2020-02-05 11:51:01 +08:00
parent 70ea651bd1
commit 7e83ccae51

4
td.go
View File

@ -1,7 +1,7 @@
package main package main
import ( import (
//"encoding/json" "encoding/json"
"fmt" "fmt"
"log" "log"
"math" "math"
@ -296,7 +296,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
MQCWMsgQueue <- r MQCWMsgQueue <- r
} }
case commandCallback: case commandCallback:
p := CallbackQueryPayloadData{ p := tdlib.CallbackQueryPayloadData{
Data: m.CallbackData, Data: m.CallbackData,
} }
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p) a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)