Documentation ¶
Index ¶
- type Interaction
- func (it *Interaction) EmitAuth(user *telebot.User)
- func (it *Interaction) HandleAuth(m *telebot.Message)
- func (it *Interaction) HandleHelp(m *telebot.Message)
- func (it *Interaction) HandleInfo(m *telebot.Message)
- func (it *Interaction) OnAuth(cb func(user *telebot.User))
- func (it *Interaction) SendToOwner(message string)
- func (it *Interaction) Session() *Session
- func (it *Interaction) SetAuthToken(token string)
- func (it *Interaction) Start(session Session)
- type Notifier
- type NotifyOption
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interaction ¶
type Interaction struct { AuthToken string StartCallbacks []func() AuthCallbacks []func(user *telebot.User) // contains filtered or unexported fields }
func NewInteraction ¶
func NewInteraction(bot *telebot.Bot, store service.Store) *Interaction
func (*Interaction) EmitAuth ¶
func (it *Interaction) EmitAuth(user *telebot.User)
func (*Interaction) HandleAuth ¶
func (it *Interaction) HandleAuth(m *telebot.Message)
func (*Interaction) HandleHelp ¶
func (it *Interaction) HandleHelp(m *telebot.Message)
func (*Interaction) HandleInfo ¶
func (it *Interaction) HandleInfo(m *telebot.Message)
func (*Interaction) OnAuth ¶
func (it *Interaction) OnAuth(cb func(user *telebot.User))
func (*Interaction) SendToOwner ¶
func (it *Interaction) SendToOwner(message string)
func (*Interaction) Session ¶
func (it *Interaction) Session() *Session
func (*Interaction) SetAuthToken ¶
func (it *Interaction) SetAuthToken(token string)
func (*Interaction) Start ¶
func (it *Interaction) Start(session Session)
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func New ¶
func New(interaction *Interaction, options ...NotifyOption) *Notifier
New TODO: register interaction with channel, so that we can route message to the specific telegram bot
type NotifyOption ¶
type NotifyOption func(notifier *Notifier)
Click to show internal directories.
Click to hide internal directories.