Co-authored-by: hobbyistlabs-coder <267281733+hobbyistlabs-coder@users.noreply.github.com>
13 lines
252 B
Go
13 lines
252 B
Go
package telegram
|
|
|
|
import (
|
|
"jane/pkg/bus"
|
|
"jane/pkg/channels"
|
|
"jane/pkg/config"
|
|
)
|
|
|
|
func init() {
|
|
channels.RegisterFactory("telegram", func(cfg *config.Config, b *bus.MessageBus) (channels.Channel, error) {
|
|
return NewTelegramChannel(cfg, b)
|
|
})
|
|
}
|