telegram

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-2-Clause Imports: 9 Imported by: 1 module, 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

Index

Constants

View Source
const SendCommandOperation base.CommandOperation = "send"

Variables

This section is empty.

Functions

This section is empty.

Types

type SendCommand

type SendCommand struct {
	ChatID  telegram.ChatID  `json:"chatId"`
	Message telegram.Message `json:"message"`
	// Bot names the bot that delivers this message. Empty means the default
	// bot, so commands produced before this field existed keep reaching the
	// bot that has always handled them. Consumers filter on it, which is what
	// lets several bots share one chat id — see telegram.Bot.
	Bot telegram.Bot `json:"bot,omitempty"`
}

func (SendCommand) Validate

func (s SendCommand) Validate(ctx context.Context) error

type SendCommandObjectSender

type SendCommandObjectSender interface {
	SendCommand(ctx context.Context, sendCommand SendCommand) error
}

func NewSendCommandObjectSender

func NewSendCommandObjectSender(
	commandCreator base.CommandCreator,
	commandSender cdb.CommandObjectSender,
	initiator cqrsiam.Initiator,
) SendCommandObjectSender

Jump to

Keyboard shortcuts

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