Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Telegram Anruf

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Telegram Anruf

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fastfoot @liv-in-sky last edited by

      in der main.js des Adapters wird der Konstanten axios ein Wert zugewiesen, woraufhin der Anruf fehlschlägt. Einfach Zeile 1262 auskommentieren bzw. natürlich im issue erwähnen, habe gerade wenig Zeit dafür
      //axios = axios || require('axios'); <=== ist unnötig und erzeugt Fehler durch Zuweisung an die Konstante axios (definiert in Zeile 27)

      liv-in-sky 1 Reply Last reply Reply Quote 2
      • liv-in-sky
        liv-in-sky @fastfoot last edited by

        @fastfoot

        super - danke funktioniert

        alle telegrm instanzen stoppen

        /opt/iobroker/node_modules/iobroker.telegram/main.js

        Image 1.png

        mit blockly getestet !

        F P 2 Replies Last reply Reply Quote 1
        • F
          fastfoot @liv-in-sky last edited by

          @liv-in-sky sagte in Telegram Anruf:

          super - danke funktioniert

          gerne, habe auch gleich noch einen PR gemacht, dann sollte das vom Tisch sein

          liv-in-sky 1 Reply Last reply Reply Quote 1
          • liv-in-sky
            liv-in-sky @fastfoot last edited by

            @fastfoot habe es auch in github hinterlegt

            F 1 Reply Last reply Reply Quote 0
            • F
              fastfoot @liv-in-sky last edited by

              @liv-in-sky sagte in Telegram Anruf:

              @fastfoot habe es auch in github hinterlegt

              habe ich gesehen, mit PR meinte ich die fertige Lösung welche nur noch akzeptiert werden muss damit die Codebase geändert wird.

              liv-in-sky G 2 Replies Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @fastfoot last edited by

                @fastfoot ok
                Das ist ja ein Service hier:-) nochmals danke

                falke69 1 Reply Last reply Reply Quote 0
                • falke69
                  falke69 @liv-in-sky last edited by

                  @liv-in-sky

                  ich wollte gerade Dein Blockly importieren, dabei scheint es aber einen Fehler zu geben.
                  Also habe ich es nachgebaut, aber leider bekomme ich bei Telegram keinen Anruf rein.
                  Die Stelle in der main.js habe ich bereits auskommentiert und den Adapter neu gestartet.
                  Muss ich ggf. im Bot noch etwas einstellen?

                  Danke

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @falke69 last edited by liv-in-sky

                    @falke69

                    du nimmst das standard blockly von telegram, wenn der adpter in main.js geändert ist (unter sendto)

                    Image 5.png

                    oder als javascript:

                    sendTo('telegram.1', 'call', {
                       text: 'Some text',
                       user: ''
                        });
                    

                    falke69 1 Reply Last reply Reply Quote 0
                    • falke69
                      falke69 @liv-in-sky last edited by

                      @liv-in-sky

                      danke für die schnelle Rückmeldung.

                      das mit diesem Baustein habe ich auch schon versucht.
                      Da bekomme ich aber folgende Fehlermeldung:

                      	Cannot make a call to @Test: <head> <script data-ad-client="ca-pub-120411544941234" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> </head> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-170177679-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "UA-170177679-1"); </script> <font face="Courier New,Digital, Arial, Helvetica, sans-serif"><p>User @Test is not in the whitelist. Checking Authorization...<br>Using bot: @CallMeBot_API<p>Authorization for user @Test is not received.<p><font color="red">Warning! User not authorized. Click <a href="https://api2.callmebot.com/txt/auth.php">here</a> to authorize CallMeBot to contact you.</font>
                      

                      Den Benutzernamen und die Zahlengrupen habe ich ersetzt.

                      liv-in-sky 2 Replies Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @falke69 last edited by

                        @falke69 lass mal den user weg

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @falke69 last edited by liv-in-sky

                          @falke69 ich meinte den empfänger

                          muss den user angeben: '@Liv_in_sky'

                          Image 6.png

                          Image 7.png

                          falke69 1 Reply Last reply Reply Quote 0
                          • falke69
                            falke69 @liv-in-sky last edited by falke69

                            @liv-in-sky

                            da bekomme ich das:

                            Cannot make a call, because no users stored in telegram.0.communicate.users
                            

                            Edit:

                            das wäre die Meldung ohne Benutzer.

                            Und das hier die Meldung mit Benutzer:

                            Cannot make a call to @Test: <head> <script data-ad-client="ca-pub-120411544941234" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> </head> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-170177679-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "UA-170177679-1"); </script> <font face="Courier New,Digital, Arial, Helvetica, sans-serif"><p>User @Test is not in the whitelist. Checking Authorization...<br>Using bot: @CallMeBot_API<p>Authorization for user @Test is not received.<p><font color="red">Warning! User not authorized. Click <a href="https://api2.callmebot.com/txt/auth.php">here</a> to authorize CallMeBot to contact you.</font>
                            

                            Ansonsten sollten die Einstellungen im Adaper stimmen.
                            Ich habe es anstelle des Benutzernamens auch mit der ID versucht, aber auch ohne Erfolg.
                            Alle anderen Blocklys, wo Telegram verbaut ist, funktionieren.

                            falke69 1 Reply Last reply Reply Quote 0
                            • falke69
                              falke69 @falke69 last edited by

                              @falke69

                              So habe den Fehler gefunden:-)

                              Anrufe waren in der App gesperrt. 😥

                              1 Reply Last reply Reply Quote 0
                              • G
                                ghifunk @fastfoot last edited by ghifunk

                                @fastfoot
                                Hallo,
                                Danke für die schnelle Antwort! Nach dem Auskommentieren der Zeile 1262 kommen nun die Sprachnachrichten an!
                                Allerdings bekomme ich nach dem Ablauf der Meldung trotzdem noch einen Fehler im Protokoll angezeigt:

                                ghi 03-11-_2021_16-43-14.jpg

                                kann jemand daraus erkennen, was da noch falsch läuft?
                                was sagt mir "User @myname is not in the whitelist"?
                                Danke für die Hilfe
                                Gruß
                                Gerhard

                                Glasfaser 1 Reply Last reply Reply Quote 0
                                • Glasfaser
                                  Glasfaser @ghifunk last edited by

                                  @ghifunk
                                  lese ein Beitrag über dir , er hatte das gleich und auch gelöst

                                  G Vumer 3 Replies Last reply Reply Quote 0
                                  • G
                                    ghifunk @Glasfaser last edited by

                                    @glasfaser

                                    hallo,
                                    nicht ganz, - die Sprachnachricht funktioniert ja, allerdings kommt trotzdem die Fehlermeldung.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      ghifunk @Glasfaser last edited by ghifunk

                                      @glasfaser
                                      Die gleiche Fehlermeldung kommt auch wenn ich den Anruf als javascript auslöse!03-11-_2021_17-20-52.jpg
                                      Der Anruf mit der Durchsage auf mein Handy erfolgt ohne Probleme!

                                      1 Reply Last reply Reply Quote 0
                                      • Vumer
                                        Vumer @Glasfaser last edited by Vumer

                                        @ghifunk
                                        bei mir ist es genauso

                                        @glasfaser sagte in Telegram Anruf:

                                        lese ein Beitrag über dir , er hatte das gleich und auch gelöst

                                        leider nicht, der Anruf funktioniert

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fastfoot @Vumer last edited by

                                          @vumer sagte in Telegram Anruf:

                                          leider nicht, der Anruf funktioniert

                                          ich würde den Fehler erstmal ignorieren. Ich schaue es mir mal an...Der Patch bezog sich ja erstmal 'nur' darauf, Anrufe gangbar zu machen

                                          G 1 Reply Last reply Reply Quote 1
                                          • G
                                            ghifunk @fastfoot last edited by

                                            @fastfoot

                                            Danke! Es geht ja erst mal.
                                            schön, daß jemand da ist, der sich auskennt und helfen kann!
                                            Gruß
                                            ghifunk

                                            F 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            663
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            45
                                            3827
                                            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