setBotInfo method

Future<Result<Boolean>> setBotInfo({
  1. InputUserBase? bot,
  2. required String langCode,
  3. String? name,
  4. String? about,
  5. String? description,
})

Set Bot Info.

ID: 10cf3123.

Implementation

Future<Result<Boolean>> setBotInfo({
  InputUserBase? bot,
  required String langCode,
  String? name,
  String? about,
  String? description,
}) async {
  // Preparing the request.
  final request = BotsSetBotInfo(
    bot: bot,
    langCode: langCode,
    name: name,
    about: about,
    description: description,
  );

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

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