Dies ist ein sehr einfacher Code einer getupdates Methode für einen Telegram Bot.Telegram Bot-Methode getupdates zu langsam und nicht alle json Ergebnis? Warum?
<?php
$update=file_get_contents("https://api.telegram.org/bot206686165:AAH59jwJZDPhrY7r-0jL3qEWJkKjTTmXUUo/getupdates");
print_r($update); ?>
jetzt ist das Ergebnis sehr langsam geladen (20 sec) und ist nicht alles/richtig -Warum das?:
{ "ok": true, "Ergebnis": [{ "UPDATE_ID": 103868812, "message": { "message_id": 5 "aus": { "id": 56277261“ first_name ":" Roberto "," Nachname ":" D'Antuono "}," chat ": {" id ": 56277261," Vorname ":" Roberto "," Nachname ":" D'Antuono "," Typ " : "privat"}, "date": 1462527792, "text": "/ start", "entities": [{"type": "bot_befehl", "offset": 0, "length": 6}]}} , {"update_id": 103868813, "Nachricht": {"message_id": 6, "von": {"id": 56277261, "first_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": {"id": 56277261, "erster_name": "Roberto", "letzter_name": "D'Antuono", "typ": "privat"}, "datum": 1462527794, "text": "ciao "}}, {" update_id ": 103868814, " Nachricht ": {" message_id ": 7," von ": {" id ": 56277261," first_name ":" Roberto "," letzter_name ":" D'Antuono "}," chat ": {" id ": 56277261," first_name ":" Rob
Das Ergebnis von nur Link:
https://api.telegram.org/bot'MY_TOKEN'/getupdates
schnell und ist dies:
{ "ok": true, "Ergebnis": [{ "UPDATE_ID": 103868812, "Nachricht": {"message_id": 5, "von": {"id": 56277261, "first_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": {"id" : 56277261, "first_name": "Roberto", "Nachname": "D'Antuono", "Typ": "privat"}, "Datum": 1462527792, "text": "/ start", "entities": [ {"Typ": "Bot_Befehl", "Offset": 0, "Länge": 6}]}}, {"update_id": 103868813, "Nachricht": {"message_id": 6, "von": {"id": 56277261, "first_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": {"id" : 56277261, "first_name": "Roberto", "Nachname": "D'Antuono", "Typ": "Privat"}, "Datum": 1462527794, "Text": "ciao"}}, {"update_id" : 103868814, "message": {"message_id": 7, "von": {"id": 56277261, "first_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": { "id": 56277261, "first_name": "Roberto", "Nachname": "D'Antuono", "Typ": "Privat"}, "Datum": 1462527824, "Text": "/ ciao", "Entitäten ": [{" type ":" bot_command "," offset ": 0," length ": 5}]}}, {" update_id ": 103868815, " Nachricht ": {" message_id ": 8," from " : {"id": 56277261, "erster_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": {"id": 56277261, "first_name": "Roberto", "last_name": "D'Antuono", "type": "privat"}, "date": 1462527826, "text": "/ ciao", "entities": [{"type": "bot_command", "offset": 0, "Länge": 5}]}}, {"update_id": 103868816, "Nachricht": {"message_id": 9, "from": { "id": 56277261, "erster_name": "Roberto", "letzter_name": "D'Antuono"}, "chat": {"id": 56277261, "first_name": "Roberto", "last_name": "D "Antuono", "type": "privat"}, "date": 1462527826, "text": "/ ciao", "entities": [{"type": "bot_command", "offset": 0, "length ": 5}]}}, {" update_id ": 103868817, " Nachricht ": {" message_id ": 10," von ": {" id ": 56277261," first_name ":" Roberto "," last_name ": "D'Antuono"}, "chat": {"id": 56277261, "erster_name": "Roberto", "letzter_name": "D'Antuono", "typ": "privat"}, "datum": 1462527826 , "text": "/ ciao", "entities": [{"type": "bot_befehl", "offset": 0, "length": 5}]}}, {"update_id": 103868818, "Nachricht ": {" message_id ": 11," von ": {" id ": 56277261," first_name ":" Roberto "," letzter_name ":" D'Antuono "}," chat ": {" id ": 56277261, "Vorname": "Roberto", "Nachname": "D'Antuono", "Typ": "Privat"}, "Datum": 1462527826, "Text": "/ ciao", "Entitäten": [{"Typ ":" bot_command "," Offset ": 0," Länge ": 5}]}}, {" update_id ": 103868819, " Nachricht ": {" message_id ": 12," from ": {" ID ": 56277261," first_name ":" Roberto "," Nachname ":" D'Antuono "}," Chat ": {" id ": 56277261," Vorname ":" Roberto "," Nachname ":" D " Antuono "," type ":" private "}," date ": 1462528498," text ":"/start "," entities ": [{" type ":" bot_befehl "," offset ": 0," length " : 6}]}}, {"update_id": 103868820, "Nachricht": {"message_id": 13, "von": {"id": 56277261, "first_name": "Roberto", "last_name": " D'Antuono "}," chat ": {" id ": 56277261," erster_name ":" Roberto "," letzter_name ":" D'Antuono "," typ ":" privat "}," datum ": 1462528503, "text": "mamma"}}]}
Können Sie mir dabei helfen? Meine Domain ist auf altervista.org und Sie versuchen diesen Link für Test Slow Load ...
http://unisadb.altervista.org/BOT/hello.php