diff --git a/.env.development b/.env.development
index fd8b12b..e623f71 100644
--- a/.env.development
+++ b/.env.development
@@ -7,10 +7,9 @@ NEXT_PUBLIC_PORT=3003
NEXTAUTH_URL=https://localhost:3003
SSL_ENABLED=true
+TELEGRAM_BOT=true
SSL_KEY=./certificates/localhost-key.pem
SSL_CERT=./certificates/localhost.pem
# DATABASE_URL=mysql://root:Zelen0ku4e@192.168.0.10:3306/cart_dev
DATABASE_URL=mysql://cart:cartpw@localhost:3306/cart
-
-TELEGRAM_BOT=true
\ No newline at end of file
diff --git a/pages/contactUs.tsx b/pages/contactUs.tsx
index 568ed4e..a7cd1a8 100644
--- a/pages/contactUs.tsx
+++ b/pages/contactUs.tsx
@@ -25,13 +25,11 @@ const ContactsPage = () => {
*/
}
{/*
-
+
Телеграм
*/}
-
-
);
};
diff --git a/public/content/icons/telegram-svgrepo-com.svg b/public/content/icons/telegram-svgrepo-com.svg
new file mode 100644
index 0000000..d58c812
--- /dev/null
+++ b/public/content/icons/telegram-svgrepo-com.svg
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file
diff --git a/server.js b/server.js
index ae6ded1..bfd1b44 100644
--- a/server.js
+++ b/server.js
@@ -44,6 +44,7 @@ const nextHandler = nextApp.getRequestHandler();
console.log("process.env.SSL_ENABLED = ", process.env.SSL_ENABLED);
console.log("process.env.NEXTAUTH_URL = ", process.env.NEXTAUTH_URL);
console.log("process.env.NEXT_PUBLIC_PORT = ", process.env.NEXT_PUBLIC_PORT);
+console.log("process.env.TELEGRAM_BOT = ", process.env.TELEGRAM_BOT);
//require('module-alias/register');
diff --git a/src/telegram.js b/src/telegram.js
index da6b4cd..2a9827e 100644
--- a/src/telegram.js
+++ b/src/telegram.js
@@ -5,7 +5,7 @@ const TelegramBot = require('node-telegram-bot-api');
const filePath = path.join(__dirname, '../content/telegram_users.json');
const token = process.env.TELEGRAM_BOT_TOKEN;
-const enabled = process.env.TELEGRAM_BOT_ENABLED === 'true';
+const enabled = process.env.TELEGRAM_BOT === 'true';
let bot;