yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Token.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 12.08.17.
3 //
4 
5 #ifndef YATBCPP_TOKEN_H
6 #define YATBCPP_TOKEN_H
7 
8 #include <string.h>
9 
10 #ifndef __TELEGRAM_TOKEN_LENGTH
11 #define __TELEGRAM_TOKEN_LENGTH 45
12 #endif
13 
14 namespace yatbcpp {
15 
16  class Token {
17  public:
18  Token(const char ttoken[__TELEGRAM_TOKEN_LENGTH]);
19 
20  Token(const Token& T);
21 
22  const std::string getToken() const;
23 
24  void setToken(std::string s);
25 
26  static Token FromFile(const char *fileLocation);
27 
28  private:
29  std::string token;
30 
31  };
32 }
33 
34 
35 
36 
37 #endif //YATBOT_TOKEN_H
#define __TELEGRAM_TOKEN_LENGTH
Definition: Token.h:11
static Token FromFile(const char *fileLocation)
Definition: Token.cc:60
Definition: Bot.h:27
void setToken(std::string s)
Definition: Token.cc:32
Token(const char ttoken[__TELEGRAM_TOKEN_LENGTH])
Definition: Token.cc:46
std::string token
Definition: Token.h:29
const std::string getToken() const
Definition: Token.cc:23