tgbotapi

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

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 5 Imported by: 0

README

Rumors telegram bot api plugin

Installation

go get github.com/rumorsflow/telegram-bot-api

Documentation

Index

Constants

View Source
const PluginName = "tgbotapi"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string `mapstructure:"token"`
}

type Plugin

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

func (*Plugin) Init

func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger) error

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns user-friendly plugin name

func (*Plugin) Provides

func (p *Plugin) Provides() []any

Provides declares factory methods.

func (*Plugin) ServiceBotAPI

func (p *Plugin) ServiceBotAPI() *tgbotapi.BotAPI

Jump to

Keyboard shortcuts

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