Closed ghost closed 6 years ago
Phew, reo7sp's crazyness.
Following code can give human-readable error message.
#include <string.h>
// ...
try {
bot.getApi().sendPhoto(...);
} catch (int errno) {
std::cout << strerror(errno) << '\n';
}
Anyone ...?
Sorry for delay. Make sure you have example.jpg
(or other file specified in photoFilePath
) in current working directory and it's readable.
@QuantScientist, is your problem solved? Can we close this issue (if so, please do it)?
Using OSX with Cmake 3.10, boost 1.64, while reading the image in the Photo example.