From 2568822d5855f4d8a1af9d3fb6fcdd5c7193acb2 Mon Sep 17 00:00:00 2001 From: Lukas Prediger Date: Wed, 4 Mar 2020 17:21:43 +0100 Subject: [PATCH] Add comments to code --- .../understanding-the-library/Understanding-The-Library.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TelegramBots.wiki/understanding-the-library/Understanding-The-Library.md b/TelegramBots.wiki/understanding-the-library/Understanding-The-Library.md index 94a59003..e643a4cc 100644 --- a/TelegramBots.wiki/understanding-the-library/Understanding-The-Library.md +++ b/TelegramBots.wiki/understanding-the-library/Understanding-The-Library.md @@ -35,10 +35,13 @@ we can also do directly calling the library. Take this piece of code: ```java +// We initialize our bot in a separate method. See this as the initialization code from the getting started guide AbsSender ourBot = getOurBot(); +// We create the Method class. This one doesn't need any parameters to be able to be send GetMe getMe = new GetMe(); +// At last, we just need to execute the method and get the result User bot = ourBot.execute(getMe); ```