allowSendMessage method

Future<Result<UpdatesBase>> allowSendMessage({
  1. required InputUserBase bot,
})

Allow Send Message.

ID: f132e3ef.

Implementation

Future<Result<UpdatesBase>> allowSendMessage({
  required InputUserBase bot,
}) async {
  // Preparing the request.
  final request = BotsAllowSendMessage(
    bot: bot,
  );

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

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