Telegram bot with settings from eeprom

Hi.
I’m using a library by Giancarlo Bacchio https://github.com/Gianbacchio/ESP8266-TelegramBot to get and send messages via Telegram with esp8266.
Working nice, but it has bottoken, botname and botusername in the code.
I decided to read it from eeprom. But arduino ide want me to declare bottoken, botname and botusername or declare class bot before starting reading eeprom. Can you help me with this code?

#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <ESP8266TelegramBOT.h>
#include <EEPROM.h>

// Initialize Wifi connection to the router
char ssid[] = "xxxxxxxxxxxxxxxxxxxxxx";              // your network SSID (name)
char pass[] = "yyyyyyyy";                              // your network key

typedef struct {
  String BOTtoken_eeprom;
  String BOTname_eeprom;
  String BOTusername_eeprom;
} WMSettings;
WMSettings EEPROMsettings;

int Bot_mtbs = 1000; //mean time between scan messages
long Bot_lasttime;   //last time messages' scan has been done
bool Start = false;


/********************************************
   EchoMessages - function to Echo messages
 ********************************************/
void Bot_ExecMessages() {
  for (int i = 1; i < bot.message[0][0].toInt() + 1; i++)      {
    bot.message[i][5] = bot.message[i][5].substring(1, bot.message[i][5].length());
    if (bot.message[i][5] == "\/ledon") {
      digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
      bot.sendMessage(bot.message[i][4], "Led is ON", "");
    }
    if (bot.message[i][5] == "\/ledoff") {
      digitalWrite(13, LOW);    // turn the LED off (LOW is the voltage level)
      bot.sendMessage(bot.message[i][4], "Led is OFF", "");
    }
    if (bot.message[i][5] == "\/start") {
      String wellcome = "Wellcome from FlashLedBot, your personal Bot on ESP8266 board";
      String wellcome1 = "/ledon : to switch the Led ON";
      String wellcome2 = "/ledoff : to switch the Led OFF";
      bot.sendMessage(bot.message[i][4], wellcome, "");
      bot.sendMessage(bot.message[i][4], wellcome1, "");
      bot.sendMessage(bot.message[i][4], wellcome2, "");
       Start = true;
    }
  }
  bot.message[0][0] = "";   // All messages have been replied - reset new messages
}

void setup() {
  Serial.begin(115200);
  delay(3000);

  // attempt to connect to Wifi network:
  Serial.print("Connecting Wifi: ");
  Serial.println(ssid);
  while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }

  // read setting from eeprom
  EEPROM.begin(512);
  EEPROM.get(0, EEPROMsettings);
  EEPROM.end();

  // Initialize Telegram BOT
  TelegramBOT bot(EEPROMsettings.BOTtoken_eeprom, EEPROMsettings.BOTname_eeprom,       EEPROMsettings.BOTusername_eeprom);

  bot.begin();      // launch Bot functionalities
  pinMode(2, OUTPUT); // initialize digital pin 2 as an output.
}

void loop() {
  if (millis() > Bot_lasttime + Bot_mtbs)  {
    bot.getUpdates(bot.message[0][1]);   // launch API GetUpdates up to xxx message
    Bot_ExecMessages();   // reply to message with Echo
    Bot_lasttime = millis();
  }
}

Sounds like a job for https://forum.arduino.cc/

@Gunner, exactly, thanks :wink:

Also, if you want to read about Blynk + Telegram: