telegram

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package telegram is the Telegram frontend: it turns updates into core calls and implements core.UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(cfg *config.Config, c *core.Core) (*Bot, error)

func (*Bot) Notice

func (b *Bot) Notice(conv core.Conv, text string)

func (*Bot) Progress

func (b *Bot) Progress(conv core.Conv) core.Progress

func (*Bot) Reply

func (b *Bot) Reply(conv core.Conv, md string)

func (*Bot) Run

func (b *Bot) Run(ctx context.Context)

Run blocks until ctx is cancelled.

func (*Bot) SendFile

func (b *Bot) SendFile(ctx context.Context, conv core.Conv, path, caption string) error

func (*Bot) SendVoice

func (b *Bot) SendVoice(ctx context.Context, conv core.Conv, ogg []byte) error

func (*Bot) ShowApproval

func (b *Bot) ShowApproval(conv core.Conv, id string, p agent.Permission) core.ApprovalView

Jump to

Keyboard shortcuts

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