22 lines
460 B
Go
22 lines
460 B
Go
package vk
|
|
|
|
type MessageRequest struct {
|
|
Type string `json:"type"`
|
|
GroupId int64 `json:"group_id"`
|
|
Object UserMessage `json:"object"`
|
|
Secret string `json:"secret"`
|
|
}
|
|
|
|
type UserMessage struct {
|
|
Body string `json:"text"`
|
|
UserId int64 `json:"peer_id"`
|
|
}
|
|
|
|
type SendMessageResponse struct {
|
|
Error ErrorResponse `json:"error"`
|
|
}
|
|
|
|
type ErrorResponse struct {
|
|
ErrorCode int `json:"error_code"`
|
|
ErrorMsg string `json:"error_msg"`
|
|
}
|