telegram

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package telegram wires up the bot: one New(deps) returns a ready-to- Start *bot.Bot with every command and callback registered.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(token string, d *deps.Deps) (*bot.Bot, error)

New constructs the underlying *bot.Bot and registers every handler. The default (fall-through) handler is set via bot.WithDefaultHandler so plain text / documents / media land on commands.DefaultHandler.

func Start

func Start(ctx context.Context, b *bot.Bot)

Start is a thin pass-through so callers don't need to import go-telegram just to start the bot.

Types

This section is empty.

Directories

Path Synopsis
Package common holds small stateless helpers used by most handlers: reply shortcuts, callback-message introspection, and string utilities.
Package common holds small stateless helpers used by most handlers: reply shortcuts, callback-message introspection, and string utilities.
Package deps exposes the shared-state bag every Telegram handler receives.
Package deps exposes the shared-state bag every Telegram handler receives.
Package keyboards holds reusable inline-keyboard builders.
Package keyboards holds reusable inline-keyboard builders.
Package middleware exposes the two wrappers that gate every handler: WrapText for message-text handlers and WrapCallback for callback queries.
Package middleware exposes the two wrappers that gate every handler: WrapText for message-text handlers and WrapCallback for callback queries.
Package namespaces defines every callback-data namespace and action used by the Telegram bot.
Package namespaces defines every callback-data namespace and action used by the Telegram bot.
Package ratelimit provides a per-key token-bucket rate limiter used to cap how fast any single Telegram user can drive the bot.
Package ratelimit provides a per-key token-bucket rate limiter used to cap how fast any single Telegram user can drive the bot.
Package rbac holds permission predicates used by Telegram handlers to decide which buttons to show and to re-verify at click time.
Package rbac holds permission predicates used by Telegram handlers to decide which buttons to show and to re-verify at click time.
Package supernotify DMs the super + the actor's direct promoter for user-lifecycle events (promote / demote / add / remove / ban) with inline quick-action buttons.
Package supernotify DMs the super + the actor's direct promoter for user-lifecycle events (promote / demote / add / remove / ban) with inline quick-action buttons.
Package views builds reusable Telegram-facing payloads — button labels, profile cards, candidate lists.
Package views builds reusable Telegram-facing payloads — button labels, profile cards, candidate lists.

Jump to

Keyboard shortcuts

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