storage

package
v0.0.0-...-5d18ba4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSubscriber

func AddSubscriber(chatID int64) error

AddSubscriber adds a new subscriber to the database

func GetSubscribers

func GetSubscribers() ([]string, error)

GetSubscribers retrieves all subscriber chat IDs from the database

func InitDB

func InitDB() error

InitDB initializes the database and creates the subscribers table if it doesn't exist

func RemoveSubscriber

func RemoveSubscriber(chatID int64) error

RemoveSubscriber removes a subscriber from the database by chat ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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