src/main/java/seedu/address/bot/ArkBot.java
public Ability helpCommand() {
        return Ability
                .builder()
                .name("help")
                .info("adds parcel to list")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    try {
                        sender.sendMessage(new SendMessage().setText(BOT_MESSAGE_HELP)
                                                                .setChatId(ctx.chatId())
                                                                .enableMarkdown(true));
                    } catch (TelegramApiException e) {
                        e.printStackTrace();
                    }
                }))
                .build();
    }
/**
     * Command to advise user on usage of bot.
     */
Command to advise user on usage of bot.
Command to advise user on usage of bot .
public Ability helpCommand() {
        return Ability
                .builder()
                .name("help")
                .info("adds parcel to list")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    try {
                        sender.sendMessage(new SendMessage().setText(BOT_MESSAGE_HELP)
                                                                .setChatId(ctx.chatId())
                                                                .enableMarkdown(true));
                    } catch (TelegramApiException e) {
                        e.printStackTrace();
                    }
                }))
                .build();
    }
public Ability helpCommand ( ) { return Ability . builder ( ) . name ( "help" ) . info ( "adds parcel to list" ) . input ( 0 ) . locality ( Locality . ALL ) . privacy ( PRIVACY_SETTING ) . action ( ctx -> Platform . runLater ( ( ) -> { try { sender . sendMessage ( new SendMessage ( ) . setText ( BOT_MESSAGE_HELP ) . setChatId ( ctx . chatId ( ) ) . enableMarkdown ( true ) ) ; } catch ( TelegramApiException e ) { e . printStackTrace ( ) ; } } ) ) . build ( ) ; }
Command to advise user on usage of bot.
Command to advise user on usage of bot .