Fix
This commit is contained in:
@@ -69,12 +69,13 @@ if (config.activate_telegram) {
|
|||||||
bot.setMyCommands([
|
bot.setMyCommands([
|
||||||
{ command: "/chatid", description: "Zeigt deine Chat ID" },
|
{ command: "/chatid", description: "Zeigt deine Chat ID" },
|
||||||
{ command: "/druckerliste", description: "Zeigt alle Drucker" },
|
{ command: "/druckerliste", description: "Zeigt alle Drucker" },
|
||||||
{ command: "/test", description: "Test" },
|
{ command: "/testWebhook [label]", description: "Test Webhook", },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
bot.on("message", async (msg) => {
|
bot.on("message", async (msg) => {
|
||||||
const chatId = msg.chat.id;
|
const chatId = msg.chat.id;
|
||||||
|
|
||||||
|
|
||||||
switch (msg.text) {
|
switch (msg.text) {
|
||||||
case "/chatid":
|
case "/chatid":
|
||||||
bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId);
|
bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId);
|
||||||
|
|||||||
Reference in New Issue
Block a user