Documentation ¶
Index ¶
- type LogHook
- type Notifier
- func (n *Notifier) AddChat(c *telebot.Chat)
- func (n *Notifier) AddSubscriber(m *telebot.Message)
- func (n *Notifier) Broadcast(message string)
- func (n *Notifier) Notify(obj interface{}, args ...interface{})
- func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{})
- func (n *Notifier) SendPhoto(buffer *bytes.Buffer)
- func (n *Notifier) SendPhotoTo(channel string, buffer *bytes.Buffer)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct { // Subscribers stores the Chat objects for broadcasting public notification Subscribers map[int64]time.Time `json:"subscribers"` // Chats are the private chats that we will send private notification Chats map[int64]*telebot.Chat `json:"chats"` // contains filtered or unexported fields }
func (*Notifier) AddSubscriber ¶
func (n *Notifier) AddSubscriber(m *telebot.Message)
Click to show internal directories.
Click to hide internal directories.