aboutsummaryrefslogtreecommitdiff
path: root/models.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 17:51:51 +0300
committerAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 17:52:03 +0300
commit4f343e00669f96451bb5a11b7e83c7ecd8503e5a (patch)
treeb14f524a4ac7418c9df4a0eb790c44caa3200368 /models.go
parent2c25c4bbfdd9b1c22c9375e8703c4ba0355417d7 (diff)
Api version 1.0.3
GetUpdatesLoop
Diffstat (limited to 'models.go')
-rw-r--r--models.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/models.go b/models.go
index 1900e44..7ee7888 100644
--- a/models.go
+++ b/models.go
@@ -3,6 +3,8 @@
*/
package tamtam
+import "encoding/json"
+
type ActionRequestBody struct {
Action SenderAction `json:"action"`
}
@@ -373,7 +375,7 @@ type Message struct {
// Forwarder or replied message
Link LinkedMessage `json:"link,omitempty"`
// Body of created message. Text + attachments. Could be null if message contains only forwarded message.
- Body MessageBody `json:"message"`
+ Body MessageBody `json:"body"`
}
// Schema representing body of message
@@ -687,7 +689,7 @@ type UpdateUserRemoved struct {
// List of all updates in chats your bot participated in
type UpdateList struct {
// Page of updates
- Updates []Update `json:"updates"`
+ Updates []json.RawMessage `json:"updates"`
// Pointer to the next data page
Marker int64 `json:"marker"`
}