change sendMessage to execute in "Getting Started"
This commit is contained in:
parent
babb9d8be5
commit
a5942de946
|
@ -88,7 +88,7 @@ Now that we have the library, we can start coding. There are few steps to follow
|
|||
.setChatId(update.getMessage().getChatId())
|
||||
.setText(update.getMessage().getText());
|
||||
try {
|
||||
sendMessage(message); // Call method to send the message
|
||||
execute(message); // Call method to send the message
|
||||
} catch (TelegramApiException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -171,4 +171,4 @@ Now that we have the library, we can start coding. There are few steps to follow
|
|||
```
|
||||
|
||||
3. **Play with your bot:**
|
||||
Done, now you just need to run this `main` method and your Bot should start working.
|
||||
Done, now you just need to run this `main` method and your Bot should start working.
|
||||
|
|
Loading…
Reference in New Issue
Block a user