Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. sendto telegram mehrere chat-id angeben

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    sendto telegram mehrere chat-id angeben

    This topic has been deleted. Only users with topic management privileges can see it.
    • kallewirsch
      kallewirsch last edited by kallewirsch

      Hallo,
      ich nutze den sendto telegram. Dort kann man optional eine Chat-ID angeben.

      Frage: Kann ich dort mehrere Chat-IDs angeben, z.B. mit Komma getrennt?

      Ich habe in der Dokumentation nichts gefunden.

      M 1 Reply Last reply Reply Quote 0
      • M
        MCU @kallewirsch last edited by

        @kallewirsch

        const chatIds = [123456789, 987654321]; // Liste der Chat-IDs
        
        chatIds.forEach(chatId => {
            sendTo("telegram", {
                text: "Hallo, das ist eine Nachricht an mehrere Chats!",
                chatId: chatId
            });
        });
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        810
        Online

        31.9k
        Users

        80.1k
        Topics

        1.3m
        Posts

        2
        2
        112
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo