7
7
// NewMessage creates a new Message.
8
8
//
9
9
// chatID is where to send it, text is the message text.
10
- func NewMessage (chatID int , text string ) MessageConfig {
10
+ func NewMessage (chatID int64 , text string ) MessageConfig {
11
11
return MessageConfig {
12
12
BaseChat : BaseChat {
13
13
ChatID : chatID ,
@@ -22,7 +22,7 @@ func NewMessage(chatID int, text string) MessageConfig {
22
22
//
23
23
// chatID is where to send it, fromChatID is the source chat,
24
24
// and messageID is the ID of the original message.
25
- func NewForward (chatID int , fromChatID int , messageID int ) ForwardConfig {
25
+ func NewForward (chatID int64 , fromChatID int64 , messageID int ) ForwardConfig {
26
26
return ForwardConfig {
27
27
BaseChat : BaseChat {ChatID : chatID },
28
28
FromChatID : fromChatID ,
@@ -36,7 +36,7 @@ func NewForward(chatID int, fromChatID int, messageID int) ForwardConfig {
36
36
// FileReader, or FileBytes.
37
37
//
38
38
// Note that you must send animated GIFs as a document.
39
- func NewPhotoUpload (chatID int , file interface {}) PhotoConfig {
39
+ func NewPhotoUpload (chatID int64 , file interface {}) PhotoConfig {
40
40
return PhotoConfig {
41
41
BaseFile : BaseFile {
42
42
BaseChat : BaseChat {ChatID : chatID },
@@ -51,7 +51,7 @@ func NewPhotoUpload(chatID int, file interface{}) PhotoConfig {
51
51
//
52
52
// chatID is where to send it, fileID is the ID of the file
53
53
// already uploaded.
54
- func NewPhotoShare (chatID int , fileID string ) PhotoConfig {
54
+ func NewPhotoShare (chatID int64 , fileID string ) PhotoConfig {
55
55
return PhotoConfig {
56
56
BaseFile : BaseFile {
57
57
BaseChat : BaseChat {ChatID : chatID },
@@ -65,7 +65,7 @@ func NewPhotoShare(chatID int, fileID string) PhotoConfig {
65
65
//
66
66
// chatID is where to send it, file is a string path to the file,
67
67
// FileReader, or FileBytes.
68
- func NewAudioUpload (chatID int , file interface {}) AudioConfig {
68
+ func NewAudioUpload (chatID int64 , file interface {}) AudioConfig {
69
69
return AudioConfig {
70
70
BaseFile : BaseFile {
71
71
BaseChat : BaseChat {ChatID : chatID },
@@ -81,7 +81,7 @@ func NewAudioUpload(chatID int, file interface{}) AudioConfig {
81
81
//
82
82
// chatID is where to send it, fileID is the ID of the audio
83
83
// already uploaded.
84
- func NewAudioShare (chatID int , fileID string ) AudioConfig {
84
+ func NewAudioShare (chatID int64 , fileID string ) AudioConfig {
85
85
return AudioConfig {
86
86
BaseFile : BaseFile {
87
87
BaseChat : BaseChat {ChatID : chatID },
@@ -95,7 +95,7 @@ func NewAudioShare(chatID int, fileID string) AudioConfig {
95
95
//
96
96
// chatID is where to send it, file is a string path to the file,
97
97
// FileReader, or FileBytes.
98
- func NewDocumentUpload (chatID int , file interface {}) DocumentConfig {
98
+ func NewDocumentUpload (chatID int64 , file interface {}) DocumentConfig {
99
99
return DocumentConfig {
100
100
BaseFile : BaseFile {
101
101
BaseChat : BaseChat {ChatID : chatID },
@@ -111,7 +111,7 @@ func NewDocumentUpload(chatID int, file interface{}) DocumentConfig {
111
111
//
112
112
// chatID is where to send it, fileID is the ID of the document
113
113
// already uploaded.
114
- func NewDocumentShare (chatID int , fileID string ) DocumentConfig {
114
+ func NewDocumentShare (chatID int64 , fileID string ) DocumentConfig {
115
115
return DocumentConfig {
116
116
BaseFile : BaseFile {
117
117
BaseChat : BaseChat {ChatID : chatID },
@@ -125,7 +125,7 @@ func NewDocumentShare(chatID int, fileID string) DocumentConfig {
125
125
//
126
126
// chatID is where to send it, file is a string path to the file,
127
127
// FileReader, or FileBytes.
128
- func NewStickerUpload (chatID int , file interface {}) StickerConfig {
128
+ func NewStickerUpload (chatID int64 , file interface {}) StickerConfig {
129
129
return StickerConfig {
130
130
BaseFile : BaseFile {
131
131
BaseChat : BaseChat {ChatID : chatID },
@@ -141,7 +141,7 @@ func NewStickerUpload(chatID int, file interface{}) StickerConfig {
141
141
//
142
142
// chatID is where to send it, fileID is the ID of the sticker
143
143
// already uploaded.
144
- func NewStickerShare (chatID int , fileID string ) StickerConfig {
144
+ func NewStickerShare (chatID int64 , fileID string ) StickerConfig {
145
145
return StickerConfig {
146
146
BaseFile : BaseFile {
147
147
BaseChat : BaseChat {ChatID : chatID },
@@ -155,7 +155,7 @@ func NewStickerShare(chatID int, fileID string) StickerConfig {
155
155
//
156
156
// chatID is where to send it, file is a string path to the file,
157
157
// FileReader, or FileBytes.
158
- func NewVideoUpload (chatID int , file interface {}) VideoConfig {
158
+ func NewVideoUpload (chatID int64 , file interface {}) VideoConfig {
159
159
return VideoConfig {
160
160
BaseFile : BaseFile {
161
161
BaseChat : BaseChat {ChatID : chatID },
@@ -170,7 +170,7 @@ func NewVideoUpload(chatID int, file interface{}) VideoConfig {
170
170
//
171
171
// chatID is where to send it, fileID is the ID of the video
172
172
// already uploaded.
173
- func NewVideoShare (chatID int , fileID string ) VideoConfig {
173
+ func NewVideoShare (chatID int64 , fileID string ) VideoConfig {
174
174
return VideoConfig {
175
175
BaseFile : BaseFile {
176
176
BaseChat : BaseChat {ChatID : chatID },
@@ -184,7 +184,7 @@ func NewVideoShare(chatID int, fileID string) VideoConfig {
184
184
//
185
185
// chatID is where to send it, file is a string path to the file,
186
186
// FileReader, or FileBytes.
187
- func NewVoiceUpload (chatID int , file interface {}) VoiceConfig {
187
+ func NewVoiceUpload (chatID int64 , file interface {}) VoiceConfig {
188
188
return VoiceConfig {
189
189
BaseFile : BaseFile {
190
190
BaseChat : BaseChat {ChatID : chatID },
@@ -199,7 +199,7 @@ func NewVoiceUpload(chatID int, file interface{}) VoiceConfig {
199
199
//
200
200
// chatID is where to send it, fileID is the ID of the video
201
201
// already uploaded.
202
- func NewVoiceShare (chatID int , fileID string ) VoiceConfig {
202
+ func NewVoiceShare (chatID int64 , fileID string ) VoiceConfig {
203
203
return VoiceConfig {
204
204
BaseFile : BaseFile {
205
205
BaseChat : BaseChat {ChatID : chatID },
@@ -212,7 +212,7 @@ func NewVoiceShare(chatID int, fileID string) VoiceConfig {
212
212
// NewLocation shares your location.
213
213
//
214
214
// chatID is where to send it, latitude and longitude are coordinates.
215
- func NewLocation (chatID int , latitude float64 , longitude float64 ) LocationConfig {
215
+ func NewLocation (chatID int64 , latitude float64 , longitude float64 ) LocationConfig {
216
216
return LocationConfig {
217
217
BaseChat : BaseChat {
218
218
ChatID : chatID ,
@@ -228,7 +228,7 @@ func NewLocation(chatID int, latitude float64, longitude float64) LocationConfig
228
228
// Actions last for 5 seconds, or until your next action.
229
229
//
230
230
// chatID is where to send it, action should be set via Chat constants.
231
- func NewChatAction (chatID int , action string ) ChatActionConfig {
231
+ func NewChatAction (chatID int64 , action string ) ChatActionConfig {
232
232
return ChatActionConfig {
233
233
BaseChat : BaseChat {ChatID : chatID },
234
234
Action : action ,
0 commit comments