Merge pull request #320 from Clevero/dev

change sendMessage to execute in "Getting Started"
This commit is contained in:
Ruben Bermudez 2017-10-31 11:06:10 +01:00 committed by GitHub
commit 10d0934439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ Custom keyboards can be appended to messages using the `setReplyMarkup`. In this
try {
// Send the message
sendMessage(message);
execute(message);
} catch (TelegramApiException e) {
e.printStackTrace();
}

View File

@ -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.