Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/styllloz/public_html/qa-include/qa-base.php on line 1175

Warning: session_start(): Cannot start session when headers already sent in /home/styllloz/public_html/qa-include/app/users.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/users.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/page.php on line 356
Why bot for Vkontakte is slow to respond and is sending two messages? - code-flow.club | Q&A

Why bot for Vkontakte is slow to respond and is sending two messages?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
Developed two bots Vkontakte: one parses a page of College and sends a link to the schedule, the second - simply reply to messages (so could answer stickers, video and photos). Both the bot is written in PHP and hosted on Heroku.

The question: the bot is too high and/or two messages in one request because of bad code or poor hosting?
by | 9 views

2 Answers

0 like 0 dislike
And for a long time, for example, is how much?
3-5 minutes? Seconds? Everyone has their own concept for a long time.
If you want to look at the response time of the server take the message that you VC in json format, send, and paste it in Postman for example, to request from him the address of the bot. So you can get an approximate response time of your script to the message. Well and further already optimization. Of course, if you have a hosting and not a VPS the speeds are not so hot.

P. S. two posts most likely because of timeout or error. You CallbackApi use?
by
0 like 0 dislike
If the cheapest heroku there are Instances fall asleep and Wake up when there is activity
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked May 20, 2019 by tg_bu77h34d
110,608 questions
257,186 answers
0 comments
35,181 users