Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Telegram Bild direkt schicken, ohne Zwischenspeichern

    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

    Telegram Bild direkt schicken, ohne Zwischenspeichern

    This topic has been deleted. Only users with topic management privileges can see it.
    • coyote
      coyote Most Active @Nahasapee last edited by

      @Nahasapee werde ich morgen mal testen, vllt geht das

      1 Reply Last reply Reply Quote 0
      • coyote
        coyote Most Active @Nahasapee last edited by

        @Nahasapee geht leider auch nicht.

        telegram.0	2020-12-08 05:56:03.874	error	(20198) Cannot send photo [chatId - 182393659]: Error: ETELEGRAM: 400 Bad Request: wrong file identifier/HTTP URL specified
        
        N 1 Reply Last reply Reply Quote 0
        • N
          Nahasapee @coyote last edited by

          @coyote zeig Mal dein code

          coyote 1 Reply Last reply Reply Quote 0
          • coyote
            coyote Most Active @Nahasapee last edited by

            @Nahasapee mehr ist es nicht

               sendTo('telegram.0', {
                    text : "http://192.168.XX.XX:5000/garage/car/best.jpg",
                    type: 'photo'
              });
            
            N 1 Reply Last reply Reply Quote 0
            • N
              Nahasapee @coyote last edited by

              @coyote blöde Frage aber für die xx schreibst du schon die richtige IP Adresse rein ?

              coyote 1 Reply Last reply Reply Quote 0
              • coyote
                coyote Most Active @Nahasapee last edited by coyote

                @Nahasapee 😉 natürlich

                EDIT: Gleicher Fehler kommt im Log, wenn der Webserver abgeschaltet ist. Seltsam.
                Macht es einen Unterschied, weil der im Webserver im Docker läuft?
                Ich verstehs eben nicht, weil ich diese URL ja von überall im Netzwerk erreichen kann

                N 1 Reply Last reply Reply Quote 0
                • N
                  Nahasapee @coyote last edited by Nahasapee

                  @coyote gehts denn wenn du , wie ich oben von Spiegel.de nen Bild ziehst? ne Firewall hängt aber nicht noch dazwischen die eventuell blockt?

                  .... oder mal direkt von deinem Broker:

                          sendTo('telegram.0', {
                          chatId : getState('telegram.0.communicate.requestChatId'/*User ID of last received request*/).val,
                          text : " https://192.168.178.60:8081/img/no-image.png",
                          type: 'photo'
                    });
                  
                  N 1 Reply Last reply Reply Quote 0
                  • N
                    Nahasapee @Nahasapee last edited by

                    @Nahasapee sagte in Telegram Bild direkt schicken, ohne Zwischenspeichern:

                    https://192.168.178.60:8081/img/no-image.png

                    ich merk gerade das letzte geht bei mir auch nicht, mit spiegel aber schon....vielleicht kommt er mit den ports nicht klar

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Nahasapee @Nahasapee last edited by

                      @Nahasapee ich glaub der telegram dienst veruscht das bild wenn es per http adresse rein kommt selber abzuholen und kommt logischerweise nicht ins netzwerk rein, vermutlich musst du es dir doch vorm verschicken lokal abspeichern und dann halt wieder löschen.

                      coyote 1 Reply Last reply Reply Quote 0
                      • coyote
                        coyote Most Active @Nahasapee last edited by

                        @Nahasapee hm ok, wenn du es ja jetzt auch ausprobiert hast und es auch nicht geht, ist es eben so... Ja genau, lokal speichern und dann schicken ist ja kein Problem, das geht.
                        Wie gesagt, dachte eben, da das Bild ja schon vorhanden ist, könnte ich es direkt weiterleiten

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        400
                        Online

                        31.9k
                        Users

                        80.2k
                        Topics

                        1.3m
                        Posts

                        javascript
                        3
                        29
                        2764
                        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