tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

Poll's JSON assembling processing didn't properly escape quotes

Open nicholascw opened this issue 4 years ago • 3 comments

I was taking user inputs as poll option, and err Bad Request: can't parse options JSON object props whenever user inputs contains ""

nicholascw avatar Mar 09 '20 02:03 nicholascw

@nicholascw can you test again it with the latest commit, please?

zamazan4ik avatar Mar 16 '20 03:03 zamazan4ik

图片 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.

nicholascw avatar Mar 20 '20 16:03 nicholascw

图片 Also there's more test cases worth trying when debugging.

nicholascw avatar Mar 20 '20 16:03 nicholascw