telegram

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidToken = errors.New("invalid token")

ErrInvalidToken is returned when the provided Telegram bot token is empty or invalid.

Functions

func Module

func Module() fx.Option

func New

func New(cfg Config) (*telebot.Bot, error)

New constructs a telebot.Bot using the provided Config.

Types

type Config

type Config struct {
	Token string
}

Jump to

Keyboard shortcuts

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