message struct update
This commit is contained in:
parent
2dbada55f6
commit
d56bc65d93
20
v1/types.go
20
v1/types.go
@ -40,21 +40,21 @@ type DeleteResponse struct {
|
|||||||
// User struct
|
// User struct
|
||||||
type User struct {
|
type User struct {
|
||||||
ExternalID string `url:"external_id" json:"external_id"`
|
ExternalID string `url:"external_id" json:"external_id"`
|
||||||
Nickname string `url:"nickname"`
|
Nickname string `url:"nickname" json:"nickname"`
|
||||||
Firstname string `url:"first_name,omitempty"`
|
Firstname string `url:"first_name,omitempty" json:"first_name"`
|
||||||
Lastname string `url:"last_name,omitempty"`
|
Lastname string `url:"last_name,omitempty" json:"last_name"`
|
||||||
Avatar string `url:"avatar,omitempty"`
|
Avatar string `url:"avatar,omitempty" json:"avatar"`
|
||||||
ProfileURL string `url:"profile_url,omitempty"`
|
ProfileURL string `url:"profile_url,omitempty" json:"profile_url"`
|
||||||
Country string `url:"country,omitempty"`
|
Country string `url:"country,omitempty" json:"country"`
|
||||||
Language string `url:"language,omitempty"`
|
Language string `url:"language,omitempty" json:"language"`
|
||||||
Phone string `url:"phone,omitempty"`
|
Phone string `url:"phone,omitempty" json:"phone"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Message struct
|
// Message struct
|
||||||
type Message struct {
|
type Message struct {
|
||||||
ExternalID string `url:"external_id" json:"external_id"`
|
ExternalID string `url:"external_id" json:"external_id"`
|
||||||
Type string `url:"type,omitempty"`
|
Type string `url:"type,omitempty" json:"type"`
|
||||||
Text string `url:"text,omitempty"`
|
Text string `url:"text,omitempty" json:"text"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SendMessage struct
|
// SendMessage struct
|
||||||
|
Loading…
Reference in New Issue
Block a user