Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor manages a single Telegram user client that monitors multiple chats for ebook files.
func (*Monitor) AddChat ¶
func (m *Monitor) AddChat(ctx context.Context, handle string, formats map[string]bool, uploader storage.Uploader) error
AddChat resolves a handle and adds it to the monitored set.
func (*Monitor) Ready ¶
func (m *Monitor) Ready() <-chan struct{}
Ready returns a channel that is closed when the monitor is connected and authenticated. Callers should wait on this before calling AddChat.
func (*Monitor) RemoveChat ¶
RemoveChat removes a handle from the monitored set.
Click to show internal directories.
Click to hide internal directories.