1
0
mirror of synced 2024-11-25 14:36:03 +03:00

add user/bot name & photo for webhook

This commit is contained in:
Alex Lushpai 2018-08-28 15:30:07 +03:00
parent db54931d25
commit a7d64a9d7d

View File

@ -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 *newMessageDataUser `json:"user,omitempty"`
Bot *newMessageDataBot `json:"bot,omitempty"`
}
type newMessageDataUser struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Avatar string `json:"avatar"`
}
type newMessageDataBot struct {
Name string `json:"name"`
Avatar string `json:"avatar"`
} }
// TransportRequestMeta request metadata // TransportRequestMeta request metadata