From 692c5de6a254d3a4233ea7fe909502213b097d14 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 12:53:07 +0800 Subject: [PATCH] test --- utils.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 7a411ae..8a6bd2f 100644 --- a/utils.go +++ b/utils.go @@ -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