telegram

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

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