1
0
mirror of synced 2024-11-28 16:06:04 +03:00

Merge pull request #9 from gwinn/master

activity callback struct
This commit is contained in:
Alex Lushpai 2018-06-01 17:51:06 +03:00 committed by GitHub
commit 1f73c0bf53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,13 +105,27 @@ type WebhookRequest struct {
type WebhookData struct { type WebhookData struct {
ExternalUserID string `json:"external_user_id"` ExternalUserID string `json:"external_user_id"`
ExternalMessageID string `json:"external_message_id,omitempty"` ExternalMessageID string `json:"external_message_id,omitempty"`
ExternalChatID string `json:"external_chat_id"` ExternalChatID string `json:"external_chat_id"`
ChannelID uint64 `json:"channel_id"` ChannelID uint64 `json:"channel_id"`
Content string `json:"content"` Content string `json:"content"`
QuoteMessageExternalID string `json:"quote_message_external_id,omitempty"` QuoteMessageExternalID string `json:"quote_message_external_id,omitempty"`
} }
// TransportRequestMeta request metadata
type TransportRequestMeta struct { type TransportRequestMeta struct {
ID uint64 `json:"id"` ID uint64 `json:"id"`
Timestamp int64 `json:"timestamp"` Timestamp int64 `json:"timestamp"`
} }
// ActivityCallback activation callback
type ActivityCallback struct {
ClientId string `json:"clientId"`
Activity Activity `json:"activity"`
SystemUrl string `json:"systemUrl,omitempty"`
}
// Activity struct
type Activity struct {
Active bool `json:"active"`
Freeze bool `json:"freeze"`
}