getBotInfo method
Get Bot Info.
ID: dcd914fd
.
Implementation
Future<Result<BotsBotInfoBase>> getBotInfo({
InputUserBase? bot,
required String langCode,
}) async {
// Preparing the request.
final request = BotsGetBotInfo(
bot: bot,
langCode: langCode,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<BotsBotInfoBase>();
}