From 217b9fda9a925b3f1479df9cbef9cbff03662106 Mon Sep 17 00:00:00 2001 From: Stefan080106 Date: Sat, 18 Nov 2023 14:22:23 +0100 Subject: [PATCH] Fix --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5cb9dab..9d2289b 100644 --- a/src/index.js +++ b/src/index.js @@ -69,12 +69,13 @@ if (config.activate_telegram) { bot.setMyCommands([ { command: "/chatid", description: "Zeigt deine Chat ID" }, { command: "/druckerliste", description: "Zeigt alle Drucker" }, - { command: "/test", description: "Test" }, + { command: "/testWebhook [label]", description: "Test Webhook", }, ]); bot.on("message", async (msg) => { const chatId = msg.chat.id; + switch (msg.text) { case "/chatid": bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId);