Uploading telegram Message to MQTT.fx

#include <UniversalTelegramBot.h>
#include <EEPROM.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <SoftwareSerial.h>    // Software Serial library 
#include <ESP8266WiFi.h>
#include "NewPing.h"
#define ECHOPIN D1// Pin to receive echo pulse
#define TRIGPIN D2// Pin to send trigger pulse
#define MAX_DISTANCE 400 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.
long Bot_lasttime;
NewPing sonar(TRIGPIN, ECHOPIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.
long duration;        // declare duration as long. Long can store a bigger number than int.
int dist = 0; // declare distance as integer
int bulk_messages_mtbs = 1800000; // testing to delay 30 min to detecting another distance and which message been sent .
int bulk_messages2_mtbs = 36000; //testing to delay 6 sec to detecting bin been empty.

// Connect to the WiFi
const char* ssid = "";
const char* password = "";
// Connect to the MQTT Broker
const char* mqtt_server = "mosquitto.org";
const char* mqtt_username ="";
const char* mqtt_password = "";
const char* clientID = "MQTT_FX_Client";
// ------- 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)
WiFiClient espClient;
PubSubClient client(espClient);
UniversalTelegramBot bot(BOT_TOKEN, Client);

String ipAddress = "";

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

void callback(char* topic, byte* payload, unsigned int length) {
  Serial.print("Message arrived [");
  Serial.print(topic);
  Serial.print("] ");
  for (int i = 0; i < length; i++) {
    char receivedChar = (char)payload[i];
    Serial.print(receivedChar);
    if (receivedChar == '0')
      digitalWrite(TRIGPIN, HIGH);
    if (receivedChar == '1')
      digitalWrite(ECHOPIN, LOW);
  }
  Serial.println();

}

void reconnect() {
  // Loop until we're reconnected
  while (!client.connected()) {
    Serial.println("Attempting MQTT connection...");
    // Attempt to connect
    if (client.connect(clientID, mqtt_username, mqtt_password)) {
      Serial.println("Connected");
      // ... and subscribe to topic
      client.subscribe("MQTT_FX_Client/ZONE/#");
    } else {
      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
}


void setup(){
  {
    Serial.begin(9600);
    client.setServer(mqtt_server, 1883);
    client.setCallback(callback);

    // initialize the button pin as a input:
    pinMode(ECHOPIN, INPUT);
    // initialize the LED as an output:
    pinMode(TRIGPIN, OUTPUT);
    // initialize serial communication:
}

// Connect to WiFinetwork
  Serial.println();
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);

  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    //Serial.begin(9600);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
  //Serial.begin(9600);
  // Start the server
  // server.begin();
  // Serial.println("Server started");
  //Serial.begin(9600);
  // Print the IP address
  Serial.print("Local IP: ");
  Serial.println(WiFi.localIP());
}

void telegramButton1Pressed() {
  Serial.println("Telegram Button-1 Pressed");  
  int echo = digitalRead(D2);
  {
  telegramButton1PressedFlag = true;
  }
  return;
}
void sendTelegramMessage() {
  String message = "Shredder paper bin full, please clear it!";
  if(bot.sendMessage(CHAT_ID, message, "Markdown")){
    Serial.println("TELEGRAM Message  Successfully sent");
    client.publish("MQTT_FX_Client/ZONE/testzone", "Shredder paper bin full, please clear it!"); //
  }
    telegramButton2PressedFlag = false;
}  
void telegramButton2Pressed() {
  Serial.println("Telegram Button-2 Pressed");
  int echo = digitalRead(D2);
  {
    telegramButton1PressedFlag = true;
  }
  return;
}

void sendTelegramMessage2(){
  String message2 = "Shredder paper bin cleared!";
  if(bot.sendMessage(CHAT_ID, message2, "Markdown")){
    Serial.println("TELEGRAM Message 2 Successfully sent");
    client.publish("MQTT_FX_Client/ZONE/testzone", "Shredder paper bin cleared!"); //
  }
    telegramButton2PressedFlag = false;
}


void loop() {
  dist = sonar.ping_cm();
  Serial.print(dist);
  Serial.println(" cm");
  delay(100);
  static bool dist_reach = false;
  if(dist <5) {
       delay(1000);
       Serial.println("Checking Full Condition again");
       delay(10000);       //delay 10 second for checking propose.
       if(!dist_reach)
  {
          dist = sonar.ping_cm();
          Serial.print(dist);
          Serial.println(" cm");
          delay(100);
          if(dist<5){
            Serial.println("sent notifcation1 to Telegram");
            sendTelegramMessage();
            delay(bulk_messages2_mtbs);
            Bot_lasttime = 0;
            dist_reach = true;
    }
  }
}
  
  else if (dist >60) {
             delay(1000);
             Serial.println("Checking Empty Condition again");
             delay(300000);     //delay 5 minutes for checking propose.
          if(dist_reach) {
      
                dist = sonar.ping_cm();
                Serial.print(dist);
                Serial.println(" cm");
                delay(100);
                if(dist>60){
                   Serial.println("sent notifcation2 to Telegram");
                   sendTelegramMessage2();
                   delay(bulk_messages2_mtbs);
                   Bot_lasttime = 0;
          dist_reach = false;

}
}
}

  {
    if (!client.connected()) {
      reconnect();
    }
    client.loop();
  }
}

It shown the error message

777777:31:43: error: expected primary-expression before ')' token

 UniversalTelegramBot bot(BOT_TOKEN, Client);

                                           ^

exit status 1
expected primary-expression before ')' token

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The error is correct, the code is wrong there. "Client" is not defined there. There are many other such errors in the code.

pylon:
The error is correct, the code is wrong there. "Client" is not defined there. There are many other such errors in the code.

// SSL client needed for both libraries
WiFiClientSecure client;

UniversalTelegramBot bot(BOT_TOKEN, client);

yeah.This one my my starting code .That time i using WiFiClientSecure client; it can be work .After that i want added in mqtt.FX sever uploading to "mosquitto.org" because of

WiFiClient espClient;
PubSubClient client(espClient);

This two WiFiClient espClient; and PubSubClient client(espClient); cannot march with WiFiClientSercure client so i take away WiFiClientSercure and change to WiFiClient espClient; and PubSubClient client(espClient); then the problem is .Because internet not much document with telegram together with MQTT server so no information at all .