Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsProvider ¶
type EventsProvider struct {
// contains filtered or unexported fields
}
EventsProvider represents telegram events provider.
func NewEventsProvider ¶
func NewEventsProvider(log *zap.Logger, opts *Opts) *EventsProvider
NewEventsProvider creates new instance of EventsProvider.
func (*EventsProvider) EventsStream ¶
func (ep *EventsProvider) EventsStream() chan domain.Event
EventsStream method returns a stream of domain.Event.
type Opts ¶
type Opts struct { // TelegramUpdates is a channel to receive telegram updates from. TelegramUpdates tgbotapi.UpdatesChannel }
Opts represents options to create new instance of EventsProvider.
Click to show internal directories.
Click to hide internal directories.