Documentation ¶
Index ¶
- type Notifier
- 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) SendToOwner(message string)
- func (n *Notifier) SetOwner(owner *telebot.User, chat *telebot.Chat)
- 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 Subscribers map[int64]time.Time `json:"chats"` // Owner // when owner and owner chat is not nil, notification will send to the owner chat Owner *telebot.User `json:"owner"` OwnerChat *telebot.Chat `json:"chat"` // contains filtered or unexported fields }
func (*Notifier) AddSubscriber ¶ added in v1.26.0
func (n *Notifier) AddSubscriber(m *telebot.Message)
func (*Notifier) SendToOwner ¶ added in v1.26.0
Click to show internal directories.
Click to hide internal directories.