Skip to content

Commit

Permalink
Update sendDocument.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
cotestatnt authored Jan 28, 2023
1 parent f7bd378 commit f91e5b3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions examples/sendDocument/sendDocument.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ void setup() {
// initialize the Serial
Serial.begin(115200);

rst_info *resetInfo;
resetInfo = ESP.getResetInfoPtr();
Serial.print("Reset reason: ");
Serial.println(resetInfo->reason);

WiFi.setAutoConnect(true);
WiFi.mode(WIFI_STA);

Expand Down Expand Up @@ -84,8 +79,8 @@ void setup() {
// Send a welcome message to user when ready
char welcome_msg[128];
snprintf(welcome_msg, sizeof(welcome_msg),
"BOT @%s online.\n/help for command list.\nLast reset reason: %d",
myBot.getBotName(), resetInfo->reason);
"BOT @%s online.\n/help for command list.",
myBot.getBotName());

// Check the userid with the help of bot @JsonDumpBot or @getidsbot (work also with groups)
// https://t.me/JsonDumpBot or https://t.me/getidsbot
Expand Down

0 comments on commit f91e5b3

Please sign in to comment.