reo7sp/tgbot-cpp

New line simbol and white space in question and answer text

minigo opened this issue · 2 comments

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

FullSizeRender

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

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