wa

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, container *sqlstore.Container) *whatsmeow.Client

Types

type AppDatabase

type AppDatabase struct {
	// contains filtered or unexported fields
}

func NewAppDatabase

func NewAppDatabase(ctx context.Context) (*AppDatabase, error)

func (*AppDatabase) Close

func (cw *AppDatabase) Close() error

func (*AppDatabase) FetchAndStoreGroups

func (cw *AppDatabase) FetchAndStoreGroups(client *whatsmeow.Client) error

func (*AppDatabase) FetchGroup

func (cw *AppDatabase) FetchGroup(jid string) (*Group, error)

func (*AppDatabase) FetchGroups

func (cw *AppDatabase) FetchGroups() ([]Group, error)

func (*AppDatabase) Initialise

func (cw *AppDatabase) Initialise(client *whatsmeow.Client) error

type Group

type Group struct {
	JID              string
	Name             string
	Topic            string
	OwnerJID         string
	ParticipantCount int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL