Documentation ¶ Index ¶ func GetURLAndMentionFromMessage(m *telebot.Message) (url string, mention string) type Bot func NewBot(c *Config, app Portier) (Bot, error) type Config type Portier Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetURLAndMentionFromMessage ¶ func GetURLAndMentionFromMessage(m *telebot.Message) (url string, mention string) GetURLAndMentionFromMessage get URL and mention from message Types ¶ type Bot ¶ type Bot interface { // Start is used to start the bot Start() // Stop stops the bot Stop() // Bot return the original telebot.Bot object Bot() *telebot.Bot } Bot is the control interface provided to portier main instance func NewBot ¶ func NewBot(c *Config, app Portier) (Bot, error) NewBot create a bot according to config type Config ¶ type Config struct { Token string MemDB *buntdb.DB } Config is a config bot used type Portier ¶ type Portier interface { Poller() feed.Poller Logger() log.Logger DB() *gorm.DB } Portier interface is used to communicate to main instance Source Files ¶ View all Source files bot.go control.go help.go subscription.go utils.go Click to show internal directories. Click to hide internal directories.