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"`
}
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
Click to show internal directories.
Click to hide internal directories.