Compressing text files via telegram bot.
compression package contains a clear
implementation of the arithmetic compression algorithm.
The high idea is to encode the entire message into a single number in range 0 <= p <= 1.
The efficiency of the algorithm on random Russian novels is about 35-40%. Read more here.
Feel free to use scripts to compress or decompress your files from the command line.
Example:
`compress.py InFile [, otherFiles]`
`decompress.py CompressedFile`
You can also use telegram bot, which has some other useful features such as compressing all text files found on a given web-page. Start a dialog with @arithmetic_compressor_bot and follow further instructions.