2023-03-09 13:48:00 -08: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 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/calls.start
|
2023-03-09 13:48:00 -08:00
|
|
|
func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("calls.start", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// CallsForceFinish method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/calls.forceFinish
|
2023-03-09 13:48:00 -08:00
|
|
|
func (vk *VK) CallsForceFinish(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("calls.forceFinish", &response, params)
|
|
|
|
return
|
|
|
|
}
|