add user/bot name & photo for webhook
This commit is contained in:
parent
db54931d25
commit
a7d64a9d7d
27
v1/types.go
27
v1/types.go
@ -138,13 +138,26 @@ type WebhookRequest struct {
|
||||
|
||||
// WebhookData request data
|
||||
type WebhookData struct {
|
||||
ExternalUserID string `json:"external_user_id"`
|
||||
ExternalMessageID string `json:"external_message_id,omitempty"`
|
||||
ExternalChatID string `json:"external_chat_id"`
|
||||
ChannelID uint64 `json:"channel_id"`
|
||||
Content string `json:"content"`
|
||||
QuoteExternalID string `json:"quote_external_id,omitempty"`
|
||||
QuoteContent string `json:"quote_content,omitempty"`
|
||||
ExternalUserID string `json:"external_user_id"`
|
||||
ExternalMessageID string `json:"external_message_id,omitempty"`
|
||||
ExternalChatID string `json:"external_chat_id"`
|
||||
ChannelID uint64 `json:"channel_id"`
|
||||
Content string `json:"content"`
|
||||
QuoteExternalID string `json:"quote_external_id,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
|
||||
|
Loading…
Reference in New Issue
Block a user