sendmessage

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTextLength = 4096

MaxTextLength defines the maximum length allowed for a text message.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ChatID              string
	MessageThreadID     string
	Text                string
	ParseMode           string
	HasSpoiler          bool
	DisableNotification bool
	ProtectContent      bool
	DisableLinkPreview  bool
}

type Sender

type Sender interface {
	Send(opts *Options) error
}

Sender provides an interface for sending text messages to a Telegram chat.

func New

func New(httpClient httpclient.HTTPDoer) Sender

New returns a new instance of Sender.

Jump to

Keyboard shortcuts

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