commit
664f8b6f24
20
v1/types.go
20
v1/types.go
@ -71,9 +71,10 @@ type UpdateMessage struct {
|
|||||||
|
|
||||||
// SendData struct
|
// SendData struct
|
||||||
type SendData struct {
|
type SendData struct {
|
||||||
Message SendMessage `url:"message"`
|
Message SendMessage `url:"message"`
|
||||||
User User `url:"user"`
|
User User `url:"user"`
|
||||||
Channel uint64 `url:"channel"`
|
Channel uint64 `url:"channel"`
|
||||||
|
ExternalChatID string `url:"external_chat_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateData struct
|
// UpdateData struct
|
||||||
@ -116,16 +117,3 @@ 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"`
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user