1
0
mirror of synced 2024-11-21 20:46:05 +03:00

Merge pull request #10 from gwinn/master

Update data types
This commit is contained in:
Alex Lushpai 2018-06-01 18:19:59 +03:00 committed by GitHub
commit 664f8b6f24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,9 +71,10 @@ type UpdateMessage struct {
// SendData struct
type SendData struct {
Message SendMessage `url:"message"`
User User `url:"user"`
Channel uint64 `url:"channel"`
Message SendMessage `url:"message"`
User User `url:"user"`
Channel uint64 `url:"channel"`
ExternalChatID string `url:"external_chat_id"`
}
// UpdateData struct
@ -116,16 +117,3 @@ 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"`
}