mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
16 lines
337 B
Go
16 lines
337 B
Go
// Code generated by "callbackgen -type Telegram"; DO NOT EDIT.
|
|
|
|
package interact
|
|
|
|
import ()
|
|
|
|
func (tm *Telegram) OnAuthorized(cb func(s *TelegramSession)) {
|
|
tm.authorizedCallbacks = append(tm.authorizedCallbacks, cb)
|
|
}
|
|
|
|
func (tm *Telegram) EmitAuthorized(s *TelegramSession) {
|
|
for _, cb := range tm.authorizedCallbacks {
|
|
cb(s)
|
|
}
|
|
}
|