gelöscht.
Ankündigung
Einklappen
Keine Ankündigung bisher.
LBS19000303 - Telegram Contact I LBS19000304 - Telegram Receiver I LBS19000645 - Telegram Command Validator
Einklappen
X
-
Frohe Weihnachten zusammen,
ein Frage zum LBS 19000303:
Wir haben mittlerweile einige "Spielereien" mit dem telegramgenerator in Kombination mit tasker aufgebaut. Nun erhält man ja bei jeder Meldung eine neue Message, die sich langsam häufen. Da bei uns die Messages nur weiterverarbeitet und nicht gespeichert werden, sollen diese nach einer Verzögerung (LBS 16000112) auch wieder gelöscht werden.
Im Netz bin ich auf folgenden api Link gestoßen, der die Chat und Message ID benötigt. Beides liefert ja der LBS 303.
Allerdings fehlt mir gerade die Idee, eine dynamische URL für den http-get zu erstellen, aka:
https://api.telegram.org/botID/deleteMessage?chat_id=ID&message_id=dynamischeID
botID und chatID sind ja immer gleich. Aber hat da wer eine Ahnung wie man die messageID inkludieren kann? Denn diese ändert sich ja per message.
Oder gibt es eine andere Möglichkeit, diesen dynamischen Link (mit fortlaufender messID) zu senden?
Gruß
edit: reminder an mich selbst: Hilfe GENAUER lesen!
jonofe hat mich darauf hingewiesen, dass URL´s durchaus variabel gestaltet werden können! Steht auch so in der Hilfe.
Merci nochmal!Zuletzt geändert von ThomasCologne; 24.12.2019, 23:25.
Kommentar
-
Zitat von jonofe Beitrag anzeigenJa das stimmt. Der LBS ab v1.0 läuft nur noch unter CentOS7 mit PHP7.x, da er auf der aktuellen php-telegram-bot Library aufsetzt, welche PHP7.x voraussetzt.
Habe dazu gerade etwas länger gebraucht, bis ich das bemerkt habe ...
Kommentar
-
Zitat von 19grad Beitrag anzeigenGibt es noch eine ältere Version für CentOS 6.5 zum download?
Kommentar
-
Zitat von 19grad Beitrag anzeigenok
Hat noch jemand eine ältere Version von LBS19000304 Telegram Receiver kleiner v0.8
Und könnte sie mir zukommen lassen? Danke
anbei die 0.7, funktioniert bei mir mit der 6.5
edit: die Datei muss in *.php umbenannt, NICHT entpackt werdenAngehängte DateienZuletzt geändert von ThomasCologne; 20.01.2020, 21:17.
Kommentar
-
Zitat von ThomasCologne Beitrag anzeigen
anbei die 0.7, funktioniert bei mir mit der 6.5
P.S. man muss die 19000304_lbs.zip direkt in 19000304_lbs.php umbenennen, nicht entpacken.
@jonofe
Jetzt habe ich auch die große Grafik in der Hilfe des LBS gesehen, die Anzeigt unter welcher CentOS Version es läuft.
Da ich die Hilfe bei der Installation nur im txt Editor angeschaut haben ... zum einfacheren copyPaste der installations Befehle ... sah ich die Grafik nicht ...
P.S
in diesem Beitrag findet man noch die LBS19000303 Telegram Contact v0.8.5 für CentOS 6.5
Kommentar
-
Mir ist heute aufgefallen, dass ich mit dem 19000303 in der Version 1.1 keine Nachrichten mehr senden kann.
nach einem Revert auf 0.9 hat es wieder funktioniert.
Im Log stand nur folgendes drinnen:
Code:LBS19000303 [v1.1]: LBS started (7271) LBS19000303 [v1.1]: Create Message Queue with ID: 6edb6bfb (7271) LBS19000303 [v1.1]: command started (7271) LBS19000303 [v1.1]: ================ ARRAY/OBJECT START ================ LBS19000303 [v1.1]: {"text":"wwww"} LBS19000303 [v1.1]: ================ ARRAY/OBJECT END ================ LBS19000303 [v1.1]: LBS ended (7271)
die anderen Module funktionieren, ich kann
LBS19000304 problemlos Nachrichten empfangen und auswerten.
Das System ist Edomi 2.0 mit CentOS 7.0 auf amd64. Die Setupschritte im OS habe ich nach Anleitung von LBS19000303 [v1.1] durchgeführt und beim downgrade auf 0.9 nicht verändert.
Ich bleibe im Moment auf 0.9, sehe darin keine besonderen Nachteile....
Danke für das tolle Modul!!!
sG
Joe
Kommentar
-
Das sieht so aus als würde das EXEC Skript nicht laufen. Warum das so ist, kann ich allerdings nicht nachvolziehen.
In der v0.9 sollte eigentlich unter CentOS7 nur das Versenden von Texten funktionieren, falls ich mich noch richtig erinnere und das Changelog stimmt.
Hattest du das alte php-telegram-bot Verzeichnis gelöscht bevor du die Installation gemacht hast? Falls nein, wäre das noch eine Möglichkeit das zu testen.
Kommentar
-
Spannend. Die komplette Neuinstallation (miz frischem OS) hat folgende Fehlermeldung gebracht:
Code:Zeile: 114 | Class 'Longman\TelegramBot\Entities\Keyboard' not found
ausgechecked, womit es funktioniert. Sehr seltsam...
Danke für deine Hilfestellung!!
Kommentar
-
Hallo, ich versuche gerade den 19000303 ans laufen zu bekommen, scheitere aber leider an der Installation.
Ich verwende die Version 0.8.5. auf CentOS 6.5 mit PHP 5.3.3.
Beim letzten auszuführenden Befehl in CentOS geschieht folgendes:
Code:composer install
Code:Your version of PHP, 5.3.3, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade. Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php ^5.5|^7.0 but your PHP version (5.3.3) does not satisfy that requirement. Problem 2 - Installation request for guzzlehttp/guzzle 6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3]. - guzzlehttp/guzzle 6.3.3 requires php >=5.5 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 3 - Installation request for guzzlehttp/promises v1.3.1 -> satisfiable by guzz lehttp/promises[v1.3.1]. - guzzlehttp/promises v1.3.1 requires php >=5.5.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 4 - Installation request for guzzlehttp/psr7 1.6.1 -> satisfiable by guzzlehttp/psr7[1.6.1]. - guzzlehttp/psr7 1.6.1 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 5 - Installation request for ralouphie/getallheaders 3.0.3 -> satisfiable by r alouphie/getallheaders[3.0.3]. - ralouphie/getallheaders 3.0.3 requires php >=5.6 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 6 - Installation request for dms/phpunit-arraysubset-asserts v0.1.0 -> satisfiable by dms/phpunit-arraysubset-asserts[v0.1.0]. - dms/phpunit-arraysubset-asserts v0.1.0 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 7 - Installation request for doctrine/instantiator 1.2.0 -> satisfiable by doc trine/instantiator[1.2.0]. - doctrine/instantiator 1.2.0 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 8 - Installation request for monolog/monolog 2.0.0 -> satisfiable by monolog/monolog[2.0.0]. - monolog/monolog 2.0.0 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 9 - Installation request for myclabs/deep-copy 1.9.3 -> satisfiable by myclabs/deep-copy[1.9.3]. - myclabs/deep-copy 1.9.3 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 10 - Installation request for phar-io/manifest 1.0.3 -> satisfiable by phar-io/manifest[1.0.3]. - phar-io/manifest 1.0.3 requires php ^5.6 || ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 11 - Installation request for phar-io/version 2.0.1 -> satisfiable by phar-io/version[2.0.1]. - phar-io/version 2.0.1 requires php ^5.6 || ^7.0 -> your PHP version (5.3.3 ) does not satisfy that requirement. Problem 12 - Installation request for phpdocumentor/reflection-common 2.0.0 -> satisfiable by phpdocumentor/reflection-common[2.0.0]. - phpdocumentor/reflection-common 2.0.0 requires php >=7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 13 - Installation request for phpdocumentor/reflection-docblock 4.3.2 -> satisfiable by phpdocumentor/reflection-docblock[4.3.2]. - phpdocumentor/reflection-docblock 4.3.2 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 14 - Installation request for phpdocumentor/type-resolver 1.0.1 -> satisfiable by phpdocumentor/type-resolver[1.0.1]. - phpdocumentor/type-resolver 1.0.1 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 15 - Installation request for phpunit/php-code-coverage 7.0.8 -> satisfiable by phpunit/php-code-coverage[7.0.8]. - phpunit/php-code-coverage 7.0.8 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 16 - Installation request for phpunit/php-file-iterator 2.0.2 -> satisfiable by phpunit/php-file-iterator[2.0.2]. - phpunit/php-file-iterator 2.0.2 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 17 - Installation request for phpunit/php-timer 2.1.2 -> satisfiable by phpunit/php-timer[2.1.2]. - phpunit/php-timer 2.1.2 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 18 - Installation request for phpunit/php-token-stream 3.1.1 -> satisfiable by phpunit/php-token-stream[3.1.1]. - phpunit/php-token-stream 3.1.1 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 19 - Installation request for phpunit/phpunit 8.4.1 -> satisfiable by phpunit/phpunit[8.4.1]. - phpunit/phpunit 8.4.1 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 20 - Installation request for sebastian/code-unit-reverse-lookup 1.0.1 -> satisfiable by sebastian/code-unit-reverse-lookup[1.0.1]. - sebastian/code-unit-reverse-lookup 1.0.1 requires php ^5.6 || ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 21 - Installation request for sebastian/comparator 3.0.2 -> satisfiable by seba stian/comparator[3.0.2]. - sebastian/comparator 3.0.2 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 22 - Installation request for sebastian/diff 3.0.2 -> satisfiable by sebastian/diff[3.0.2]. - sebastian/diff 3.0.2 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 23 - Installation request for sebastian/environment 4.2.2 -> satisfiable by seb astian/environment[4.2.2]. - sebastian/environment 4.2.2 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 24 - Installation request for sebastian/exporter 3.1.2 -> satisfiable by sebastian/exporter[3.1.2]. - sebastian/exporter 3.1.2 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 25 - Installation request for sebastian/global-state 3.0.0 -> satisfiable by sebastian/global-state[3.0.0]. - sebastian/global-state 3.0.0 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 26 - Installation request for sebastian/object-enumerator 3.0.3 -> satisfiable by sebastian/object-enumerator[3.0.3]. - sebastian/object-enumerator 3.0.3 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 27 - Installation request for sebastian/object-reflector 1.1.1 -> satisfiable by sebastian/object-reflector[1.1.1]. - sebastian/object-reflector 1.1.1 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 28 - Installation request for sebastian/recursion-context 3.0.0 -> satisfiable by sebastian/recursion-context[3.0.0]. - sebastian/recursion-context 3.0.0 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 29 - Installation request for sebastian/resource-operations 2.0.1 -> satisfiable by sebastian/resource-operations[2.0.1]. - sebastian/resource-operations 2.0.1 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 30 - Installation request for sebastian/type 1.1.3 -> satisfiable by sebastian/type[1.1.3]. - sebastian/type 1.1.3 requires php ^7.2 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 31 - Installation request for sebastian/version 2.0.1 -> satisfiable by sebastian/version[2.0.1]. - sebastian/version 2.0.1 requires php >=5.6 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 32 - Installation request for squizlabs/php_codesniffer 3.5.1 -> satisfiable by squizlabs/php_codesniffer[3.5.1]. - squizlabs/php_codesniffer 3.5.1 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 33 - Installation request for theseer/tokenizer 1.1.3 -> satisfiable by theseer/tokenizer[1.1.3]. - theseer/tokenizer 1.1.3 requires php ^7.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 34 - doctrine/instantiator 1.2.0 requires php ^7.1 -> your PHP version (5.3.3) does not satisfy that requirement. - phpspec/prophecy 1.9.0 requires doctrine/instantiator ^1.0.2 -> satisfiable by doctrine/instantiator[1.2.0]. - Installation request for phpspec/prophecy 1.9.0 -> satisfiable by phpspec/prophecy[1.9.0].
Kommentar
-
Zitat von Winni Beitrag anzeigenIch wollte gerade testen.... es ging nicht mal mehr der Text, habe EDOMI durchgestartet (wie schon so oft bei meinen Tests) und schon funktionierts
Habe jetzt mit Edomi 2 schon ein neues ARchiv angelegt und auch versucht die Bilder manuell zu schicken. Text geht, aber die Video kommen mit dem Fehler
Code:[TABLE="border: 0, cellpadding: 0, cellspacing: 0"] [TR] [TD]Datei: /usr/local/edomi/www/data/liveproject/lbs/EXE19000303.php | Fehlercode: 0 | Zeile: 216 | Call to protected method Longman\TelegramBot\Request::encodeFile() from context ''[/TD] [TD]EXCEPTION[/TD] [/TR] [/TABLE]
Kommentar
Kommentar