Answer the question
In order to leave comments, you need to log in
How to send text via telegram link with line break?
I can send text, but without line breaks:
void SendMSG(string message) {
string URL = "https://api.telegram.org/bot"+TOKEN+"/sendMessage?chat_id="+CHAT_ID+"&text="+message;
CURL* curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl, CURLOPT_URL, URL.c_str());
curl_easy_perform(curl);
curl_easy_cleanup(curl);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question