Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Nov 23, 2024
1 parent d31962c commit 16af036
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Writerside/topics/Simple-Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 16af036

Please sign in to comment.