Documentation ¶
Index ¶
- type DbClient
- func (client *DbClient) AddChatTags(chat *telebot.Chat, tags []string) error
- func (client *DbClient) ExistChat(chat *telebot.Chat) (bool, error)
- func (client *DbClient) GetChatTags(chat *telebot.Chat) ([]string, error)
- func (client *DbClient) List() ([]StoreValue, error)
- func (client *DbClient) Remove(chat *telebot.Chat) error
- type StoreValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbClient ¶
type DbClient struct {
// contains filtered or unexported fields
}
DbClient : client for store
func (*DbClient) AddChatTags ¶
AddChatTags : Add telebot chat and subscribed tags to bolt store
func (*DbClient) GetChatTags ¶
GetChatTags : Get subscribed tags for the chat from bolt store
func (*DbClient) List ¶
func (client *DbClient) List() ([]StoreValue, error)
List : Get chat and tags list from bolt store
type StoreValue ¶
StoreValue : telebot chat and tags list
Click to show internal directories.
Click to hide internal directories.