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

New line simbol and white space in question and answer text

Open minigo opened this issue 2 years ago • 2 comments

std::string question = "1\n2\n3\n4\n5"; std::vectorstd::string options = {"False", "0", "1", "This\ncode\nhas\nan\nerror"};

FullSizeRender

minigo avatar Sep 20 '22 14:09 minigo

llnulldisk What about new line in question text? Is this at all possible to do more than 3 lines?

minigo avatar Sep 21 '22 08:09 minigo

Sorry, I still wanted to answer here. Yes, the question text is limited to a maximum of 3 lines by Telegram. In addition, you cannot force a line break with \n in an answer option. Unfortunately, the poll question and the poll options cannot be formatted in general. Telegram simply ignores this

llnulldisk avatar Sep 21 '22 15:09 llnulldisk