bbgo_origin/pkg/interact/telegram_callbacks.go

16 lines
343 B
Go

// Code generated by "callbackgen -type Telegram"; DO NOT EDIT.
package interact
import ()
func (tm *Telegram) OnAuthorized(cb func(a *TelegramAuthorizer)) {
tm.authorizedCallbacks = append(tm.authorizedCallbacks, cb)
}
func (tm *Telegram) EmitAuthorized(a *TelegramAuthorizer) {
for _, cb := range tm.authorizedCallbacks {
cb(a)
}
}