Merge pull request #320 from Clevero/dev
change sendMessage to execute in "Getting Started"
This commit is contained in:
commit
10d0934439
@ -186,7 +186,7 @@ Custom keyboards can be appended to messages using the `setReplyMarkup`. In this
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Send the message
|
// Send the message
|
||||||
sendMessage(message);
|
execute(message);
|
||||||
} catch (TelegramApiException e) {
|
} catch (TelegramApiException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ Now that we have the library, we can start coding. There are few steps to follow
|
|||||||
.setChatId(update.getMessage().getChatId())
|
.setChatId(update.getMessage().getChatId())
|
||||||
.setText(update.getMessage().getText());
|
.setText(update.getMessage().getText());
|
||||||
try {
|
try {
|
||||||
sendMessage(message); // Call method to send the message
|
execute(message); // Call method to send the message
|
||||||
} catch (TelegramApiException e) {
|
} catch (TelegramApiException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user