VL53L0X sensor with esp8266 unable sending message to telegram

Following is my coding, i am changing vl6180X to VL53L0X sensor. After that i changing the libraries the message can measure the distance but it only println out the notification line did not approve to the sending message part.

#include <UniversalTelegramBot.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <Wire.h>
#include "Adafruit_VL53L0X.h"
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
#define SCLPIN  D1     //output
#define SDAPIN  D2   //input to recieve and an output to transmit
long Bot_lasttime;
int bulk_messages_mtbs = 30000; // testing to delay 6sec to detecting another distance and which message been sent .
int Dist = 0;   //Set  Range to integer
//------- WiFi Settings -------
char ssid[] = "";       // your network SSID (name)
char password[] = "";  // your network key
// ------- Telegram config ----------
#define BOT_TOKEN ""  // your Bot Token (Get from Botfather)
#define CHAT_ID "" // Chat ID of where you want the message to go (You can use MyIdBot to get the chat ID)

// SSL client needed for both libraries
WiFiClientSecure client;

UniversalTelegramBot bot(BOT_TOKEN, client);

String ipAddress = "";

volatile bool telegramButton1PressedFlag = false;
volatile bool telegramButton2PressedFlag = false;

void setup() {
Serial.begin(115200);
Wire.begin();
pinMode(SDAPIN, INPUT); // Sets the SDAPin as an INput
pinMode(SCLPIN, OUTPUT);// Sets the SCLPin as an OUTput

// Set WiFi to station mode and disconnect from an AP if it was Previously
// connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);

// Attempt to connect to Wifi network:
Serial.print("Connecting Wifi: ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
    delay(500);
 }
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
IPAddress ip = WiFi.localIP();
Serial.println(ip);
// wait until serial port opens for native USB devices
while (! Serial) {
    delay(1);
}
  
Serial.println("Adafruit VL53L0X test");
if (!lox.begin()) {
    Serial.println(F("Failed to boot VL53L0X"));
    while(1);
  }
// power 
Serial.println(F("VL53L0X API Simple Ranging example\n\n")); 
 ipAddress = ip.toString();
}
void telegramButton1Pressed() {                                 //FULL
  Serial.println("Telegram Button-1 Pressed");
  VL53L0X_RangingMeasurementData_t measure;
  Serial.print("Reading a measurement... ");
  lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
  if(measure.RangeMilliMeter <50){
     Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
  {
     telegramButton1PressedFlag = true;
  }
  return;
}
}
void sendTelegramMessage() {
  String message = "Dustbin was full @ 27 Mandai Estate #04-01!";              
  if(bot.sendMessage(CHAT_ID, message, "Markdown")){
    Serial.println("TELEGRAM Message 1 Successfully sent");
  }
    telegramButton1PressedFlag = false;
}

void telegramButton2Pressed() {                                 //Empited
  Serial.println("Telegram Button-2 Pressed");
  VL53L0X_RangingMeasurementData_t measure;
  Serial.print("Reading a measurement... ");
  lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
  if(measure.RangeMilliMeter >70){
     Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
  {
     telegramButton2PressedFlag = true;
  }
  return;
}
}

void sendTelegramMessage2() {
  String message2 = "Dustbin was empited @ 27 Mandai Estate #04-01!";              
  if(bot.sendMessage(CHAT_ID, message2, "Markdown")){
    Serial.println("TELEGRAM Message 2 Successfully sent");
  }
    telegramButton2PressedFlag = false;
}

void loop() {
  VL53L0X_RangingMeasurementData_t measure;
  Serial.print("Reading a measurement... ");
  lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
  static bool Distance_reach = false;
  if(measure.RangeMilliMeter <50) {
       Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
       delay(1000);
       Serial.println("Checking Full Condition again");
       delay(10000);       //delay 10 second for checking propose.
       if(!Distance_reach)
{
          
            VL53L0X_RangingMeasurementData_t measure;  
            Serial.print("Reading a measurement... ");
            lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
            if(measure.RangeMilliMeter <50){
                Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
                Serial.println("sent notifcation1 to Telegram");
                sendTelegramMessage();
                delay(bulk_messages_mtbs);
                Bot_lasttime = 0;  
                Distance_reach = true;            
  
}  
}
}
  else if (measure.RangeMilliMeter >70) {                              //EMPTY
                 Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
                 delay(1000);
                 Serial.println("Checking Empited Condition again");
                 delay(30000);     //delay 30 second for checking propose.
          if(Distance_reach) {
      
                   VL53L0X_RangingMeasurementData_t measure;
                   Serial.print("Reading a measurement... ");
                   lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!
                   if(measure.RangeMilliMeter >70){
                       Serial.print("Distance (mm): "); Serial.println(measure.RangeMilliMeter);
                       Serial.println("sent notifcation2 to Telegram");
                       sendTelegramMessage2();
                       delay(bulk_messages_mtbs);
                       Bot_lasttime = 0;
          Distance_reach = false;     
  


}
}
}
}