Why not work?
See original GitHub issue`
BOT_TOKEN = "MyToken*****";
chatId = "@textion_me";
bot = TelegramBotAdapter.build(BOT_TOKEN);
SendMessage request = new SendMessage(chatId,"Test")
.parseMode(ParseMode.HTML)
.disableWebPagePreview(true)
.disableNotification(true)
.replyToMessageId(1)
.replyMarkup(new ForceReply());
// sync
SendResponse sendResponse = bot.execute(request);
boolean ok = sendResponse.isOk();
Message message = sendResponse.message();
Log.e("TRT",ok +"");
// async
bot.execute(request, new Callback<SendMessage, SendResponse>() {
@Override
public void onResponse(SendMessage request, SendResponse response) {
}
@Override
public void onFailure(SendMessage request, IOException e) {
}
});
`
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
6 reasons why Americans aren't returning to work - CNBC
So far, evidence suggests benefits didn't play a big role in sidelining workers. Other factors are at play, according to economists. They ...
Read more >7 Reasons Why Employees Don't Work and What You Can Do ...
Reason #6 The work environment does not support team effort Team work fails as the environment becomes one based on blame. Working together ......
Read more >I Don't Want to Work — 8 Reasons You're Not Feeling It at Work
This article from Psychology Today discusses four common reasons for not wanting to work—and why this demotivation at work is so common. If...
Read more >10 Reasons You Should Never Get a Job | HighExistence
Here are some reasons you should do everything in your power to avoid getting a job:
Read more >8 Acceptable Reasons To Miss Work - Terry Katz & Associates
3. Personal Illness. Personal illness, especially contagious types, are almost always a valid excuse to take off time off from work. Employers don't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try
TelegramBotAdapter.buildDebug
and check consoleWhen I delete the following code works correctly.
.parseMode(ParseMode.HTML) .disableWebPagePreview(true) .disableNotification(true) .replyToMessageId(1) .replyMarkup(new ForceReply());
But the problem anymore! Each time the code is executed twice to send the message!