Skip to content

Commit a6a1f43

Browse files
committed
Close witnessmenow#10: added getToken()
1 parent bbd7b1f commit a6a1f43

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ void UniversalTelegramBot::updateToken(const String& token) {
5050
_token = token;
5151
}
5252

53+
String UniversalTelegramBot::getToken() {
54+
return _token;
55+
}
56+
5357
String UniversalTelegramBot::buildCommand(const String& cmd) {
5458
String command;
5559

src/UniversalTelegramBot.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class UniversalTelegramBot {
6767
public:
6868
UniversalTelegramBot(const String& token, Client &client);
6969
void updateToken(const String& token);
70+
String getToken();
7071
String sendGetToTelegram(const String& command);
7172
String sendPostToTelegram(const String& command, JsonObject payload);
7273
String

0 commit comments

Comments
 (0)