beehive: Index | Files

package telegrambee

import ""

Package telegrambee is a Bee that can connect to Telegram.


Package Files

telegrambee.go telegrambeefactory.go


const (
    ModeHTML     = telegram.ModeHTML
    ModeMarkdown = "MarkdownV2"
    ModePlain    = ""

type TelegramBee Uses

type TelegramBee struct {
    // contains filtered or unexported fields

TelegramBee is a Bee that can connect to Telegram.

func (*TelegramBee) Action Uses

func (mod *TelegramBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*TelegramBee) ReloadOptions Uses

func (mod *TelegramBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*TelegramBee) Run Uses

func (mod *TelegramBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type TelegramBeeFactory Uses

type TelegramBeeFactory struct {

TelegramBeeFactory is a factory for TelegramBees.

func (*TelegramBeeFactory) Actions Uses

func (factory *TelegramBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*TelegramBeeFactory) Description Uses

func (factory *TelegramBeeFactory) Description() string

Description returns the description of this Bee.

func (*TelegramBeeFactory) Events Uses

func (factory *TelegramBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*TelegramBeeFactory) ID Uses

func (factory *TelegramBeeFactory) ID() string

ID returns the ID of this Bee.

func (*TelegramBeeFactory) Image Uses

func (factory *TelegramBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*TelegramBeeFactory) LogoColor Uses

func (factory *TelegramBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*TelegramBeeFactory) Name Uses

func (factory *TelegramBeeFactory) Name() string

Name returns the name of this Bee.

func (*TelegramBeeFactory) New Uses

func (factory *TelegramBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*TelegramBeeFactory) Options Uses

func (factory *TelegramBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Package telegrambee imports 8 packages (graph) and is imported by 14 packages. Updated 2020-11-08. Refresh now. Tools for package owners.