messaging

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineService

type LineService struct {
	// contains filtered or unexported fields
}

func NewLineService

func NewLineService(httpClient *http.Client, apiKey string) *LineService

func (*LineService) SendMessage

func (l *LineService) SendMessage(message string) error

type MessagingService

type MessagingService interface {
	SendMessage(message string) error
}

func NewMessageService

func NewMessageService(conf config.Config, lineService *LineService, telegramService *TelegramService) MessagingService

type TelegramService

type TelegramService struct {
	// contains filtered or unexported fields
}

func NewTelegramService

func NewTelegramService(httpClient *http.Client, botToken string, chatId string) *TelegramService

func (*TelegramService) SendMessage

func (t *TelegramService) SendMessage(message string) error

Jump to

Keyboard shortcuts

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