Added dict with additional cards

This commit is contained in:
Artyom Belousov 2021-02-03 19:09:08 +03:00
parent 181f3bc0aa
commit 88ea431a27
26 changed files with 232 additions and 35 deletions

22
internal/vk/structs.go Normal file
View file

@ -0,0 +1,22 @@
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"`
}