1
0
Fork 0
mirror of synced 2025-04-04 05:33:35 +03:00
messenger/receiving.go
2016-04-13 19:36:38 +10:00

28 lines
567 B
Go

package messenger
type Receive struct {
Object string `json:"object"`
Entry []Entry `json:"entry"`
}
type Entry struct {
ID int64 `json:"id"`
Time int64 `json:"time"`
Messaging []MessageInfo `json:"messaging"`
}
type MessageInfo struct {
Sender Sender `json:"sender"`
Recipient Recipient `json:"recipient"`
Timestamp int64 `json:"timestamp"`
Message *Message `json:"message"`
Delivery *Delivery `json:"delivery"`
}
type Sender struct {
ID int64 `json:"id"`
}
type Recipient struct {
ID int64 `json:"id"`
}