@@ -209,8 +209,9 @@ func (m Message) MarkAsRead() (err error) {
209
209
func (api * VkAPI ) SendPeerMessage (peerID int64 , msg string ) (id int , err error ) {
210
210
r := SimpleResponse {}
211
211
err = api .CallMethod (apiMessagesSend , H {
212
- "peer_id" : strconv .FormatInt (peerID , 10 ),
213
- "message" : msg ,
212
+ "peer_id" : strconv .FormatInt (peerID , 10 ),
213
+ "message" : msg ,
214
+ "dont_parse_links" : "1" ,
214
215
}, & r )
215
216
return r .Response , err
216
217
}
@@ -219,8 +220,9 @@ func (api *VkAPI) SendPeerMessage(peerID int64, msg string) (id int, err error)
219
220
func (api * VkAPI ) SendChatMessage (chatID int , msg string ) (id int , err error ) {
220
221
r := SimpleResponse {}
221
222
err = api .CallMethod (apiMessagesSend , H {
222
- "chat_id" : strconv .Itoa (chatID ),
223
- "message" : msg ,
223
+ "chat_id" : strconv .Itoa (chatID ),
224
+ "message" : msg ,
225
+ "dont_parse_links" : "1" ,
224
226
}, & r )
225
227
return r .Response , err
226
228
}
@@ -230,8 +232,9 @@ func (api *VkAPI) SendMessage(userID int, msg string) (id int, err error) {
230
232
r := SimpleResponse {}
231
233
if msg != "" {
232
234
err = api .CallMethod (apiMessagesSend , H {
233
- "user_id" : strconv .Itoa (userID ),
234
- "message" : msg ,
235
+ "user_id" : strconv .Itoa (userID ),
236
+ "message" : msg ,
237
+ "dont_parse_links" : "1" ,
235
238
}, & r )
236
239
}
237
240
return r .Response , err
0 commit comments