Changed log printing on error only
This commit is contained in:
parent
ac68bc64b4
commit
705a135cac
2 changed files with 16 additions and 3 deletions
|
|
@ -11,3 +11,12 @@ 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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue