I have two telegram bots and last time I have noticed, that 2nd bot became to slow.
My research shows that sendMessage call has different time for two of them.
curl "https://api.telegram.org/bot123456789:AAAAAAAAABBBBBBBBCCCCCCC/sendMessage?chat_id=987654321&text=HI"
Here is output for the two different bots:
Call to the first one (fast)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 224 100 224 0 0 491 0 --:--:-- --:--:-- --:--:-- 492
Call to the second bot (slow)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 227 100 227 0 0 43 0 0:00:05 0:00:05 --:--:-- 59
The first sendMessage runs instantly.
For second comes with a Time spend = 5 seconds !!
And its always 2-6 seconds. Does anyone know the reason?