fix: MessageEventObject.Payload type
package events // import "github.com/SevereCloud/vksdk/v2/events"
import (
+ "encoding/json"
+
"github.com/SevereCloud/vksdk/v2/object"
)
@@ -39,7 +41,7 @@ type MessageEventObject struct {
UserID int `json:"user_id"`
PeerID int `json:"peer_id"`
EventID string `json:"event_id"`
- Payload string `json:"payload"`
+ Payload json.RawMessage `json:"payload"`
ConversationMessageID int `json:"conversation_message_id"`
}
