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.

FutureSttpClient is unable to process polling repsonses from Telegram

See original GitHub issue

Just after bot is started, Log trace prints the following error after every polling attempt by SttPClient.

From the response, it seems telegram APIs are not giving the correct responses.

[error, com.bot4s.telegram.clients.FutureSttpClient] RESPONSE 4ca5a90f-6867-48d9-86e8-fcaa1dc1e934 java.lang.IllegalArgumentException: requirement failed: Exactly one of the optional fields should be used

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
ravinderpayalcommented, Mar 18, 2021

I found the reason of crash as well:

March 9, 2021 Bot API 5.1

Added two new update types

Added updates about member status changes in chats, represented by the class ChatMemberUpdated and the fields my_chat_member and chat_member in the Update class. The bot must be an administrator in the chat to receive chat_member updates about other chat members. By default, only my_chat_member updates about the bot itself are received. https://core.telegram.org/bots/api

0reactions
ravinderpayalcommented, Mar 18, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

socket.timeout on telegram bot.polling() - Stack Overflow
At first it works correctly and then after a few hours it stops responding. This is sample code import telebot API_TOKEN = 'API_TOKEN'...
Read more >
Long Polling vs. Webhooks - grammY
Polling means that grammY proactively sends a request to Telegram, asking for new updates (think: messages). If no messages are there, Telegram ......
Read more >
Bots FAQ - Telegram APIs
Hello Bot demonstrates the basics of the Telegram bot API. Simple Poll bot is a more complete example, it supports both long-polling and...
Read more >
TelegramBots/Telegram.Bot.Extensions.Polling - GitHub
There are two implementations: BlockingUpdateReceiver blocks execution on every new getUpdates request; QueuedUpdateReceiver enqueues updates in an internal ...
Read more >
Telegram Bot Problem with Post HTTP - Question - Mbed
I have tried to send a message to a telegram bot with HTTPClient. ... I think the way library shrink the URL cannot...
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