Skip to content

Commit 09c6700

Browse files
Update BOT Token during execution
I have included a function to update the Token during execution time so the token can be stored in (for example) the EEPROM and retrieved during setup.
1 parent b4ebcae commit 09c6700

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/UniversalTelegramBot.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct telegramMessage {
4949
class UniversalTelegramBot {
5050
public:
5151
UniversalTelegramBot(String token, Client &client);
52+
void updateToken(String token);
5253
String sendGetToTelegram(String command);
5354
String sendPostToTelegram(String command, JsonObject &payload);
5455
String

0 commit comments

Comments
 (0)