getBotWithHttpInfo method
Get a bot
Get a bot specified by its bot id. ##### Permissions Must have read_bots
permission for bots you are managing, and read_others_bots
permission for bots others are managing. Minimum server version: 5.10
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getBotWithHttpInfo(
String botUserId, {
bool? includeDeleted,
}) async {
// ignore: prefer_const_declarations
final path = r'/bots/{bot_user_id}'.replaceAll('{bot_user_id}', botUserId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (includeDeleted != null) {
queryParams.addAll(_queryParams('', 'include_deleted', includeDeleted));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}