ping to telegram is 9 ms but the request like sendMessage minimun take more than 200 to 600 ms
Can any body help?
ping != actual processing time
And 200 ms it's long time❓ I play pubg on this ping
I test any part of my code The slowest part is the send request to telegram..
How can you test speed from the phone?
Yea yea I'm asking you can we test the speed of request by phone too like pc?
You test ping by edit message?
No My assistant bot just handle new or edit message ..no need to re send if i have mistake
Nice php cool thanks
Have u access to terminal on your server?
0.1 microseconds??? What is the location of your server?
No bro Its seconds Microseconds return unixtime and the float part is micro time
🤦🏻♂️Ooops U are right thanks
if($text=="ping"){ $start_time = round(microtime(true) * 1000); $send= bot('sendmessage', [ 'chat_id' => $chat_id, 'text' =>"Ping:", ])->result->message_id; $end_time = round(microtime(true) * 1000); $time_taken = $end_time - $start_time; bot('editMessagetext',[ "chat_id" => $chat_id, "message_id" => $send, "text" => "Ping:" . $time_taken . "ms", ]);}
It's 170-200 so whatever it's fast
This is not real ping And for a good ping, u need test some times and calculate average
How can this help me? Or why i need to test ping if my user only 16k?
For big bots it can be important between 10mili seconds or 1 mili seconds
Обсуждают сегодня