Merge pull request #21 from gwinn/master
add user/bot name & photo for webhook
This commit is contained in:
commit
8be7a95768
13
v1/types.go
13
v1/types.go
@ -145,6 +145,19 @@ type WebhookData struct {
|
|||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
QuoteExternalID string `json:"quote_external_id,omitempty"`
|
QuoteExternalID string `json:"quote_external_id,omitempty"`
|
||||||
QuoteContent string `json:"quote_content,omitempty"`
|
QuoteContent string `json:"quote_content,omitempty"`
|
||||||
|
User *MessageDataUser `json:"user,omitempty"`
|
||||||
|
Bot *MessageDataBot `json:"bot,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type MessageDataUser struct {
|
||||||
|
FirstName string `json:"first_name"`
|
||||||
|
LastName string `json:"last_name"`
|
||||||
|
Avatar string `json:"avatar"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type MessageDataBot struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Avatar string `json:"avatar"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TransportRequestMeta request metadata
|
// TransportRequestMeta request metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user