Counting Messages

On Github, a user asked this: There is a counter for sent media in telegram but not for messages. It would be cool to have kind of a statistic how many messages you sent to a specific user.

The Telegram Desktop developer replied that there is no API for sent and received messages count separately, but the information about messages count in the specific conversation is available. However, currently it does not fit anywhere in the Telegram Desktop design, so only the interested guys can look it up in debug logs.

How to do it?

  1. Enable debug mode (click)
  2. In the debug logs, open the mtp_…txt log files and look for count