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