getBotCommands method
Future<Result<Vector<BotCommandBase> > >
getBotCommands({
- required BotCommandScopeBase scope,
- required String langCode,
Get Bot Commands.
ID: e34c0dd6
.
Implementation
Future<Result<Vector<BotCommandBase>>> getBotCommands({
required BotCommandScopeBase scope,
required String langCode,
}) async {
// Preparing the request.
final request = BotsGetBotCommands(
scope: scope,
langCode: langCode,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Vector<BotCommandBase>>();
}