getBotIconImage method

Future<void> getBotIconImage(
  1. String botUserId
)

Get bot's LHS icon

Get a bot's LHS icon image based on bot_user_id string parameter. ##### Permissions Must be logged in. Minimum server version: 5.14

Parameters:

  • String botUserId (required): Bot user ID

Implementation

Future<void> getBotIconImage(
  String botUserId,
) async {
  final response = await getBotIconImageWithHttpInfo(
    botUserId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}