tgbot-cpp
tgbot-cpp copied to clipboard
Poll's JSON assembling processing didn't properly escape quotes
I was taking user inputs as poll option, and err Bad Request: can't parse options JSON object
props whenever user inputs contains ""
@nicholascw can you test again it with the latest commit, please?
I don't think it's fixed.
Tested with above message, the designed behavior should be sending a poll with two options, each with string from each message after /new respectively. The previous version would give me a poll with 3 options, and the now it has the error shown in the first screenshot.
I think it wouldn't be that hard to fix, since my commented workaround was working well.
Also there's more test cases worth trying when debugging.