Get returns a bot by botUserID. Minimum server version: 5.10
(botUserID string, includeDeleted bool)
| 26 | // |
| 27 | // Minimum server version: 5.10 |
| 28 | func (b *BotService) Get(botUserID string, includeDeleted bool) (*model.Bot, error) { |
| 29 | bot, appErr := b.api.GetBot(botUserID, includeDeleted) |
| 30 | |
| 31 | return bot, normalizeAppErr(appErr) |
| 32 | } |
| 33 | |
| 34 | // BotListOption is an option to configure a bot List() request. |
| 35 | type BotListOption func(*model.BotGetOptions) |
nothing calls this directly
no test coverage detected