telegram

package
v0.0.0-...-2652df3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatStore

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

ChatStore writes the users to a libkv store backend

func NewChatStore

func NewChatStore(kv store.Store) (*ChatStore, error)

NewChatStore stores telegram chats in the provided kv backend

func (*ChatStore) Add

func (s *ChatStore) Add(c telebot.Chat) error

Add a telegram chat to the kv backend

func (*ChatStore) List

func (s *ChatStore) List() ([]telebot.Chat, error)

List all chats saved in the kv backend

func (*ChatStore) Remove

func (s *ChatStore) Remove(c telebot.Chat) error

Remove a telegram chat from the kv backend

Jump to

Keyboard shortcuts

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