aboutsummaryrefslogtreecommitdiff
path: root/message.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-11-20 15:14:54 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-11-20 15:14:54 +0300
commit7a749a3d0c87ddb9d8109c5cbca7d7efcb3991eb (patch)
tree4c00b77dcb08920733035fcb1fdf16497b60ff83 /message.go
parentb551e8bcc63900eee1052499b00e9eb2fce71d77 (diff)
Fix descriptionv0.3.3
Fix int64 ids
Diffstat (limited to 'message.go')
-rw-r--r--message.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/message.go b/message.go
index 20e0ff4..739d59c 100644
--- a/message.go
+++ b/message.go
@@ -3,8 +3,8 @@ package tamtam
import "github.com/neonxp/tamtam/schemes"
type Message struct {
- userID int
- chatID int
+ userID int64
+ chatID int64
message *schemes.NewMessageBody
}
@@ -12,11 +12,11 @@ func NewMessage() *Message {
return &Message{userID: 0, chatID: 0, message: &schemes.NewMessageBody{Attachments: []interface{}{}}}
}
-func (m *Message) SetUser(userID int) *Message {
+func (m *Message) SetUser(userID int64) *Message {
m.userID = userID
return m
}
-func (m *Message) SetChat(chatID int) *Message {
+func (m *Message) SetChat(chatID int64) *Message {
m.chatID = chatID
return m
}
@@ -63,7 +63,7 @@ func (m *Message) AddLocation(lat float64, lon float64) *Message {
return m
}
-func (m *Message) AddContact(name string, contactID int, vcfInfo string, vcfPhone string) *Message {
+func (m *Message) AddContact(name string, contactID int64, vcfInfo string, vcfPhone string) *Message {
m.message.Attachments = append(m.message.Attachments, schemes.NewContactAttachmentRequest(schemes.ContactAttachmentRequestPayload{
Name: name,
ContactId: contactID,