telegram

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PromptMD string

Functions

This section is empty.

Types

type Telegram

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

func New

func New(token string) *Telegram

func (*Telegram) Name

func (t *Telegram) Name() string

func (*Telegram) Presenter

func (t *Telegram) Presenter() channel.Presenter

func (*Telegram) ProbeThread

func (t *Telegram) ProbeThread(ctx context.Context, senderID string) error

ProbeThread checks if the topic for senderID still exists by sending a probe message and deleting it. sendChatAction is unreliable for private chat topics (Telegram ignores invalid thread_id silently).

func (*Telegram) RenameThread

func (t *Telegram) RenameThread(ctx context.Context, replyToken, name string)

func (*Telegram) Send

func (*Telegram) Setup

func (t *Telegram) Setup(ctx context.Context) error

func (*Telegram) ShareQR

func (t *Telegram) ShareQR(_ context.Context) (string, error)

func (*Telegram) Start

func (t *Telegram) Start(ctx context.Context, handler channel.InboundHandler) error

func (*Telegram) StartTyping

func (t *Telegram) StartTyping(ctx context.Context, _ string, replyToken string) (stop func())

Jump to

Keyboard shortcuts

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