Documentation
¶
Overview ¶
Package vk implements AstraEngine's VK community bot adapter.
Index ¶
- type Config
- type Platform
- func (p *Platform) AnswerCallback(ctx context.Context, callbackID string, text string) error
- func (p *Platform) Capabilities() capability.Capabilities
- func (p *Platform) Edit(ctx context.Context, ev event.Event, msg platform.OutgoingMessage) error
- func (p *Platform) EditByRef(ctx context.Context, ref platform.MessageRef, msg platform.OutgoingMessage) error
- func (p *Platform) GetCommunity(ctx context.Context, id string) (platform.Community, error)
- func (p *Platform) GetMembers(ctx context.Context, communityID string) ([]platform.Member, error)
- func (p *Platform) Name() string
- func (p *Platform) Raw() any
- func (p *Platform) Send(ctx context.Context, target platform.Target, msg platform.OutgoingMessage) error
- func (p *Platform) SendWithRef(ctx context.Context, target platform.Target, msg platform.OutgoingMessage) (platform.MessageRef, error)
- func (p *Platform) Start(ctx context.Context, dispatcher platform.Dispatcher) error
- func (p *Platform) WallPost(ctx context.Context, communityID, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
Platform adapts VK long-poll events and messages to AstraEngine contracts.
func (*Platform) AnswerCallback ¶
func (*Platform) Capabilities ¶
func (p *Platform) Capabilities() capability.Capabilities
func (*Platform) EditByRef ¶
func (p *Platform) EditByRef(ctx context.Context, ref platform.MessageRef, msg platform.OutgoingMessage) error
func (*Platform) GetCommunity ¶
func (*Platform) GetMembers ¶
func (*Platform) SendWithRef ¶
func (p *Platform) SendWithRef(ctx context.Context, target platform.Target, msg platform.OutgoingMessage) (platform.MessageRef, error)
Click to show internal directories.
Click to hide internal directories.