docs: MessagesSendUserIDs deprecated
@@ -515,6 +515,8 @@ func (vk *VK) MessagesSend(params Params) (response int, err error) {
}
// MessagesSendUserIDsResponse struct.
+//
+// TODO: v3 rename MessagesSendPeerIDsResponse - user_ids outdated.
type MessagesSendUserIDsResponse []struct {
PeerID int `json:"peer_id"`
MessageID int `json:"message_id"`
@@ -537,9 +539,10 @@ func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsRe
// need user_ids or peer_ids;
//
// https://vk.com/dev/messages.send
+//
+// Deprecated: user_ids outdated, use MessagesSendPeerIDs.
func (vk *VK) MessagesSendUserIDs(params Params) (response MessagesSendUserIDsResponse, err error) {
- err = vk.RequestUnmarshal("messages.send", &response, params)
- return
+ return vk.MessagesSendPeerIDs(params)
}
// MessagesSendMessageEventAnswer method.
