Go to chat/channel history folder
Git clone this script
git clone https:/realpalyanytsya/telegram-history-parser.git
Go to script folder
cd telegram-history-parser/
Install bs4
pip install bs4
python3 telegramHistoryParser.py
Finded 5 files with messages
+ messages.html sanned
+ messages2.html sanned
+ messages3.html sanned
+ messages4.html sanned
+ messages5.html sanned
Result file is: words.txt