Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditMessage ¶
type EditMessageHandler ¶
type EditMessageHandler struct {
// contains filtered or unexported fields
}
func (EditMessageHandler) Hanlde ¶
func (h EditMessageHandler) Hanlde(ctx context.Context, cmd EditMessage) error
type ForwardToChannels ¶
type ForwardToChannels struct { Text string HashtagList []string UserName string UserID string MessageID int64 MessageType domain.MessageType File domain.TgFile }
The ForwardToChannels command takes a listened message from the groups and gets the channels that match the hashtags in the message. It then sends a copy of the message to each channel with a reference to the owner and the original message.
type ForwardToChannelsHandler ¶
type ForwardToChannelsHandler struct {
// contains filtered or unexported fields
}
ForwardToChannelsHandler handles the ForwardToChannels command.
func NewForwardToChannelsHandler ¶
func NewForwardToChannelsHandler( channelRepository domain.ChannelRepository, messageRepository domain.MessageRepository, messageSender domain.TgMessageSender, ) ForwardToChannelsHandler
NewForwardToChannelsHandler build a new instance of ForwardToChannelsHandler.
func (ForwardToChannelsHandler) Handle ¶
func (h ForwardToChannelsHandler) Handle(ctx context.Context, cmd ForwardToChannels) error
Handle execute the command logic.
Click to show internal directories.
Click to hide internal directories.