From 7afe683dce2f567499b5182bc2e8ecab3561ec65 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 1 Jun 2018 17:48:36 +0300 Subject: [PATCH] activity callback struct --- v1/types.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/v1/types.go b/v1/types.go index 5820e62..88bb0a1 100644 --- a/v1/types.go +++ b/v1/types.go @@ -105,13 +105,27 @@ type WebhookRequest struct { type WebhookData struct { ExternalUserID string `json:"external_user_id"` ExternalMessageID string `json:"external_message_id,omitempty"` - ExternalChatID string `json:"external_chat_id"` + ExternalChatID string `json:"external_chat_id"` ChannelID uint64 `json:"channel_id"` Content string `json:"content"` QuoteMessageExternalID string `json:"quote_message_external_id,omitempty"` } +// TransportRequestMeta request metadata type TransportRequestMeta struct { ID uint64 `json:"id"` 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"` +}