-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BadRequest error when using the /stats command #763
Comments
I may have fixed this already. Can you tell me the exact command and config you are using? |
Just updated but still getting the same error Here is the config: { |
Ok, so you mean via the Telegram bot? You run /stats and you get an error? |
I have been able to re-create the issue but it's a bit of a strange case. |
It's fixed in v7.0.34 |
Following a market scan, using the /stats command generates a BadRequest error:
argument of type 'BadRequest' is not iterable
2023-01-26 12:43:23,604 - telegram.helper - ERROR - Exception while handling an update:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/telegram/ext/dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "/usr/local/lib/python3.9/dist-packages/telegram/ext/conversationhandler.py", line 626, in handle_update
new_state = handler.handle_update(update, dispatcher, check_result, context)
File "/usr/local/lib/python3.9/dist-packages/telegram/ext/handler.py", line 198, in handle_update
return self.callback(update, context)
File "/home/ubuntu/pycryptobot_7.31/pycryptobot/telegram_bot.py", line 388, in stats_pair_received
self.helper.send_telegram_message(update, output, context=context)
File "/home/ubuntu/pycryptobot_7.31/pycryptobot/models/telegram/helper.py", line 173, in send_telegram_message
context.bot.send_message(
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 513, in send_message
return self._message( # type: ignore[return-value]
File "/usr/local/lib/python3.9/dist-packages/telegram/ext/extbot.py", line 199, in _message
result = super()._message(
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 332, in _message
result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 295, in _post
return self.request.post(
File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 356, in post
result = self._request_wrapper(
File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 279, in _request_wrapper
raise BadRequest(message)
The text was updated successfully, but these errors were encountered: