reo7sp / tgbot-cpp

C++ library for Telegram bot API

Home Page:http://reo7sp.github.io/tgbot-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

editMessageReplyMarkup will always throw for default values

GitSparTV opened this issue · comments

commented

if ((boost::get<std::int64_t>(chatId) != 0) || (boost::get<std::string>(chatId) != "")) {

If the value is 0, get<string> will throw, if the value is "", get<int> will throw