bbgo_origin/pkg/notifier/telegramnotifier/interaction_callbacks.go
2020-12-11 14:40:18 +08:00

18 lines
358 B
Go

// Code generated by "callbackgen -type Interaction"; DO NOT EDIT.
package telegramnotifier
import (
"gopkg.in/tucnak/telebot.v2"
)
func (it *Interaction) OnAuth(cb func(user *telebot.User)) {
it.AuthCallbacks = append(it.AuthCallbacks, cb)
}
func (it *Interaction) EmitAuth(user *telebot.User) {
for _, cb := range it.AuthCallbacks {
cb(user)
}
}