canSendMessage method

Future<Result<Boolean>> canSendMessage({
  1. required InputUserBase bot,
})

Can Send Message.

ID: 1359f4e6.

Implementation

Future<Result<Boolean>> canSendMessage({
  required InputUserBase bot,
}) async {
  // Preparing the request.
  final request = BotsCanSendMessage(
    bot: bot,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}