A
A
array052020-09-19 13:03:04
PHP
array05, 2020-09-19 13:03:04

Telegram bot response time?

️Friends, what determines the response time from the bot? There are bots where there are quite a lot of users, but the response from the bot is still instant! How can the same effect be achieved? Even VPS took for this case, the code was optimized, but alas, the response time is somewhere around 1-2 seconds. I use: PHP/MySQLi/WebHook

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxKozlov, 2020-09-20
@MaxKozlov

You can suspect anything, for example, a connection to the database (if it occurs for each message)
But we don’t have a crystal ball, but you can simply write time to the log with great accuracy through each line to see which line takes a lot of time

P
PEREGINEC, 2020-09-21
@PEREGINEC

Faster response in python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question