Prepare 实现了 BotLoginOption 接口
(bot *Bot)
| 51 | |
| 52 | // Prepare 实现了 BotLoginOption 接口 |
| 53 | func (g BotOptionGroup) Prepare(bot *Bot) { |
| 54 | for _, option := range g { |
| 55 | option.Prepare(bot) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // OnError 实现了 BotLoginOption 接口 |
| 60 | func (g BotOptionGroup) OnError(b *Bot, err error) error { |