bot

package module
v0.0.0-...-dbedafd Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NOTION_TOKEN       = "NOTION_TOKEN"
	TELEGRAM_TOKEN     = "TELEGRAM_TOKEN"
	PAGE_ID            = "48b530629463419ca92e22cc6ef50dab"
	PILLS_ASSET        = "./assets/pills.json"
	HELP_MESSAGE_ASSET = "./assets/help_message.txt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	TelegramToken string
	Cfg           cfg.BotConfigs
	Bot           bt.Bot
	NotionClient  notionapi.Client
	HelpMessage   string
	UserRepo      adapters.UserRepo
	Pills         []entities.Pill
	Categories    map[string][]entities.Pill
}

func NewBotWithConfig

func NewBotWithConfig(client *mongo.Client) (*Bot, error)

func (*Bot) Start

func (b *Bot) Start() error

Jump to

Keyboard shortcuts

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