mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 01:05:15 +00:00
18 lines
358 B
Go
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)
|
|
}
|
|
}
|