47 this->setToken(ttoken);
63 ifstream file (filelocation, ios::in);
69 std::getline(file,token);
72 std::cerr <<
"Telegram Token Size Missmatch::" << token.size() <<
" instead of " <<
__TELEGRAM_TOKEN_LENGTH << std::endl;
78 throw file_not_found(
"Supplied File Location does not contain a file");
80 return Token(token.c_str());
#define __TELEGRAM_TOKEN_LENGTH
static Token FromFile(const char *fileLocation)
void setToken(std::string s)
Token(const char ttoken[__TELEGRAM_TOKEN_LENGTH])
const std::string getToken() const