Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener listener for telegram
func NewListener ¶
NewListener return new tg listener
func (*Listener) ClientName ¶ added in v0.0.2
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier tg notifier
func NewNotifier ¶
NewNotifier return new tg notifier
func (*Notifier) SendMessage ¶
SendMessage implement notifier interface
func (*Notifier) SetBeforeSendHook ¶
func (n *Notifier) SetBeforeSendHook(hook func(m *tg.MessageConfig))
SetBeforeSendHook set hook for change message before send
Click to show internal directories.
Click to hide internal directories.