Do you like the waiting process? When you need to sit and wait until one of the statistician / analyst / metrics is loaded ...
“But we are fine,” you will answer. “We have cool specialists, our pages load in a split second, we even know how to cache.”
And what about the mobile Internet? When you have to plunge into the past, about 10 years ago and you can guess the layout elements as the page is rendered?
')
The method described below does not pretend to originality, I think there will be habrovans who have been using it for a long time, I just want to open it to the masses.
Nowadays, I want to receive information a second ago, maybe in the near future, they will learn to implant it directly into the brain, who knows ...
bot show me the statistics
……
thinking again, waiting again ...
This approach is used by many, and so are we. But now I want to offer you one option that made my nervous system a little stronger. There are no commands, no waiting, I opened the telegram, I chose the right chat and ... everything! The data is already there!
It's simple, one method will save us:
editMessageTextGuess? Yes that's right:
- Create a new chat and add the "right people" and one bot to it.
- We estimate how many metrics we need to output. Using the sendMessage method, we create the necessary number of messages, saving somewhere the message id from the response of this command.
- We update metrics for crown / other magic by simply editing the message using the editMessageText method, somewhere in our backend.
- ??????
- Profit!
In fact, a message can be one thing, and all metrics can be divided through line breaks, I just like to separate them by separate messages. For example, in the last message I display the last update time, to understand that the data is relevant.
The great thing is that the telegram will update everything after editing the message, and if the phone is connected to the Internet you will always receive information as quickly as possible.
Somewhere outside the city, it is sometimes almost the only way to have relevant data.
And do not forget to add the "right people" before you create a message, since the updated data will not be available to them.
Something like this:

I hope the hack, described in the article, someone come in handy, all the best!