getAllCommands method

List<String> getAllCommands()

Gets all commands from the message.

Returns a list of all bot commands in the message without the leading '/' and without bot usernames.

Implementation

List<String> getAllCommands() {
  return getAllEntityTexts(MessageEntityType.botCommand);
}