2023-03-09 21:48:00 +00:00
|
|
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
|
|
|
|
|
|
|
|
// CallsStartResponse struct.
|
|
|
|
type CallsStartResponse struct {
|
|
|
|
JoinLink string `json:"join_link"`
|
|
|
|
CallID string `json:"call_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// CallsStart method.
|
|
|
|
//
|
2024-08-27 17:04:05 +00:00
|
|
|
// https://dev.vk.com/method/calls.start
|
2023-03-09 21:48:00 +00:00
|
|
|
func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("calls.start", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// CallsForceFinish method.
|
|
|
|
//
|
2024-08-27 17:04:05 +00:00
|
|
|
// https://dev.vk.com/method/calls.forceFinish
|
2023-03-09 21:48:00 +00:00
|
|
|
func (vk *VK) CallsForceFinish(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("calls.forceFinish", &response, params)
|
|
|
|
return
|
|
|
|
}
|