question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`

             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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pengradcommented, Mar 26, 2017

Try TelegramBotAdapter.buildDebug and check console

0reactions
shahinesicommented, Mar 26, 2017

When 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found