mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-12 10:56:28 +00:00
Add vk bridge (#1372)
* Add vk bridge * Vk bridge attachments * Vk bridge forwarded messages * Vk bridge sample config and code cleanup * Vk bridge add vendor * Vk bridge message edit * Vk bridge: fix fetching names of other bots * Vk bridge: code cleanup * Vk bridge: fix shadows declaration * Vk bridge: remove UseFileURL
This commit is contained in:
23
vendor/github.com/SevereCloud/vksdk/v2/api/status.go
generated
vendored
Normal file
23
vendor/github.com/SevereCloud/vksdk/v2/api/status.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
package api // import "github.com/SevereCloud/vksdk/v2/api"
|
||||
|
||||
import (
|
||||
"github.com/SevereCloud/vksdk/v2/object"
|
||||
)
|
||||
|
||||
// StatusGetResponse struct.
|
||||
type StatusGetResponse struct {
|
||||
Audio object.AudioAudio `json:"audio"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
// StatusGet returns data required to show the status of a user or community.
|
||||
func (vk *VK) StatusGet(params Params) (response StatusGetResponse, err error) {
|
||||
err = vk.RequestUnmarshal("status.get", &response, params)
|
||||
return
|
||||
}
|
||||
|
||||
// StatusSet sets a new status for the current user.
|
||||
func (vk *VK) StatusSet(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("status.set", &response, params)
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user