From 16af03647ed4392f3c4987e7cbab2d77d6efbe9c Mon Sep 17 00:00:00 2001 From: ruben Date: Sat, 23 Nov 2024 23:45:51 +0000 Subject: [PATCH] Update version --- Writerside/topics/Simple-Example.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Writerside/topics/Simple-Example.md b/Writerside/topics/Simple-Example.md index e5a21af..0d397f7 100644 --- a/Writerside/topics/Simple-Example.md +++ b/Writerside/topics/Simple-Example.md @@ -88,8 +88,12 @@ public class Application { String botToken = "12345:YOUR_TOKEN"; // Instantiate Telegram Bots API TelegramBotsLongPollingApplication botsApplication = new TelegramBotsLongPollingApplication(); + // Create Bot + HelloBot bot = new HelloBot(); + // Enable abilities + bot.onRegister(); // Register your newly created AbilityBot - botsApplication.registerBot(botToken, new HelloBot()); + botsApplication.registerBot(botToken, bot); } catch (TelegramApiException e) { e.printStackTrace(); }