This commit is contained in:
Stefan080106
2023-11-18 14:22:23 +01:00
parent 1db954b4d1
commit 217b9fda9a

View File

@@ -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);