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
[BUG] Object of type InlineQueryResultArticle is not JSON serializable #3358
Comments
Hi. Can you please show the full traceback? |
|
Finally, I found the working state, but I'm not sure about the correct logic for interacting with ptb
|
Thanks for the updates. I can reproduce. The method is indeed faulty both on v13 and on v20. Missing serialization on v13python-telegram-bot/telegram/bot.py Line 3942 in b818dad
In this line, we should have Defaults handling on both versionsBoth versions miss setting the default values for the inline result (and even removing the Actions itemsWe definitely need a fix for the defaults behavior on v20. |
Definitely fix it on V13. |
Steps to Reproduce
Trying to send data from webapp to bot with
Expected behaviour
no error
Actual behaviour
but got error Object of type InlineQueryResultArticle is not JSON serializable
Operating System
windows 11 x64
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: