mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
16 lines
343 B
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)
|
|
}
|
|
}
|