This commit is contained in:
shoopea 2020-02-05 12:53:07 +08:00
parent 1757e927f1
commit 692c5de6a2

View File

@ -2,6 +2,7 @@ package main
import (
"encoding/json"
"fmt"
"log"
"github.com/Arman92/go-tdlib"
@ -19,7 +20,10 @@ func logOnError(err error, msg string) {
}
}
func unmarshalCallbackQueryPayload(rawMsg []byte) (tdlib.CallbackQueryPayload, error) {
func unmarshalCallbackQueryPayload(msg []byte) (tdlib.CallbackQueryPayload, error) {
var rawMsg *json.RawMessage
rawMsg = msg
if rawMsg == nil {
return nil, nil