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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Telegram Anruf

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

      @ghifunk sagte in Telegram Anruf:

      Anruf geht einfach nicht!

      Lese Beitrag 5 .....

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

        @ghifunk

        dann bitte auch auf github einen 'daumen hoch' geben

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

          bei mir funktioniert der anruf so:

          Image 1.png

          <block xmlns="https://developers.google.com/blockly/xml" type="request" id="2Bs`~72,]CB_AWuNZ=5W" x="1038" y="538">
           <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
           <field name="WITH_STATEMENT">TRUE</field>
           <field name="LOG"></field>
           <value name="URL">
             <shadow type="text">
               <field name="TEXT">http://api.callmebot.com/start.php?source=auth&amp;user=@Liv_in_sky&amp;text=This%20is%20a%20test%20from%20Callmebot&amp;lang=en-US-Standard-B</field>
             </shadow>
             <block type="text_join" id="}i0rsU~z-|Op[BKF_iZs">
               <mutation items="5"></mutation>
               <value name="ADD0">
                 <block type="text" id="l,667sh=U(R;FM=Sov!F">
                   <field name="TEXT">http://api.callmebot.com/start.php?source=auth&amp;user=</field>
                 </block>
               </value>
               <value name="ADD1">
                 <block type="text" id="@W6q15%YP}k^@rJ!2^F!">
                   <field name="TEXT">@name</field>
                 </block>
               </value>
               <value name="ADD2">
                 <block type="text" id="LZl(C-nJ5Tz+N]T/{JB+">
                   <field name="TEXT">&amp;text=</field>
                 </block>
               </value>
               <value name="ADD3">
                 <block type="text" id="IFX_(qkHt3Q6N,L=_G??">
                   <field name="TEXT">probier mal das</field>
                 </block>
               </value>
               <value name="ADD4">
                 <block type="text" id="+I^Cly[PbO.AhVy$9+0R">
                   <field name="TEXT">&amp;lang=de-DE-Standard-A</field>
                 </block>
               </value>
             </block>
           </value>
           <statement name="STATEMENT">
             <block type="comment" id="|0.xm_XOM!LS!rSs)X6r">
               <field name="COMMENT">wertet anruf aus</field>
               <next>
                 <block type="comment" id="-F4qcF^_|lV81npxr3!|">
                   <field name="COMMENT">und setzt vari's für wiederholung</field>
                   <next>
                     <block type="debug" id="3#?6#v)FD47te_G/lNQ6">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text">
                           <field name="TEXT">test</field>
                         </shadow>
                         <block type="variables_get" id="Id*/E$)`#z8X/PUo246A">
                           <field name="VAR" id="i2LQ+=xJVh:3^NtkAcE$">result</field>
                         </block>
                       </value>
                       <next>
                         <block type="comment" id="vL9[UfJaj1*6=#}39LN8">
                           <field name="COMMENT">hier anzahl der call-versuche</field>
                           <next>
                             <block type="controls_if" id="MrLDm/V9@-4J)cHR-tiA">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_operation" id="nMJ^%6TeLOmg,Y}Bs+*A" inline="false">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="logic_compare" id="z]ru/*L1H.(%I^=`?JJ^">
                                       <field name="OP">GT</field>
                                       <value name="A">
                                         <block type="text_indexOf" id="?Yr;KVQ4_fF}0oPS%=~h">
                                           <field name="END">FIRST</field>
                                           <value name="VALUE">
                                             <block type="variables_get" id="^V,I_zJlxC#x8?!RU*)e">
                                               <field name="VAR" id="i2LQ+=xJVh:3^NtkAcE$">result</field>
                                             </block>
                                           </value>
                                           <value name="FIND">
                                             <shadow type="text">
                                               <field name="TEXT">abc</field>
                                             </shadow>
                                             <block type="text" id="2=z1oHJVC%#-:fWT_e*w">
                                               <field name="TEXT">Missed Call</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="L`$),6jgM?joBAuv/+;t">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="qpo9~)rwFS}qO@O-0zl#">
                                       <field name="OP">LT</field>
                                       <value name="A">
                                         <block type="variables_get" id="Tyt+g;zShM-e6RN;1}K-">
                                           <field name="VAR" id="m6C(]?IK|wH{|pGVVx@F">countCalls</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="v3EAx)P,KTuqMESCu4Zk">
                                           <field name="NUM">10</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="debug" id="ip`zCMcLZK]yGG3irApZ">
                                   <field name="Severity">log</field>
                                   <value name="TEXT">
                                     <shadow type="text">
                                       <field name="TEXT">Missed Call detected !!!</field>
                                     </shadow>
                                     <block type="text_join" id=";5N?ll2OGwgi)gNa#qfU">
                                       <mutation items="3"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="1r2${t@9SVx~T7DLJCYY">
                                           <field name="TEXT">Missed Call detected !!! ( </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="l,stwS-l;,F,R@p(E*4W">
                                           <field name="VAR" id="m6C(]?IK|wH{|pGVVx@F">countCalls</field>
                                         </block>
                                       </value>
                                       <value name="ADD2">
                                         <block type="text" id="8dIBT^xqNQ~`M`MYw*Ja">
                                           <field name="TEXT"> Versuch(e) )</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="j}1t`EL,MPN_**1IGMmz">
                                       <field name="VAR" id="29eNbdg;U(3)s_]JhfG2">Misse4dCallsVar</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="YUsIwKn.m!B6l|eglGEW">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="variables_set" id="Pi55sPX+yG6,:Wa1V8j:">
                                   <field name="VAR" id="29eNbdg;U(3)s_]JhfG2">Misse4dCallsVar</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="pL2ftE@oe~!)HZfPZiyR">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="c,#~f*wm]2lwY!C^`G16">
                                       <field name="VAR" id="m6C(]?IK|wH{|pGVVx@F">countCalls</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="9z5px)}#.eTw=k-ReTy.">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
          </block>
          

          F 1 Reply Last reply Reply Quote 0
          • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.0k
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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