N
N
nakem2021-12-16 17:52:17
Bots
nakem, 2021-12-16 17:52:17

How to measure bot response time in telegram?

There is a bot in python, I rewrote it in go. Purely on sensations began to work much quicker. I would like to know the exact numbers. In general, it is possible to simply run two bots locally and display the time in the console, but this option is a bit problematic due to some reasons. Is there any other way to measure this? The cart does not write the response of the message in seconds, otherwise there would be no problems

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inworkl, 2021-12-16
@inworkl

In Python There is logging
You can also use the same trite

import datetime
print(datetime.datetime.now())

And find out at what millisecond the bot answered your request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question