August 27, 2015 Leave a comment
unluckly telegram has not a good feature to save caht’s history so … here the solution ugly but you can do it at least. ( i need to save the chat with babies …. x) )
first of all you need this software : telegram-cli which is open source btw you have to compile stuff (instruction line by line can be found here https://github.com/vysheng/tg#installation but wtf i prefer my own all-the-crap-line )
git clone --recursive https://github.com/vysheng/tg.git && cd tg && sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make && ./configure && make && tg/bin/telegram-cli -k tg/server.pub
now he will ask you for a phone , which you have to write in the console … BE CAREFULL TO ADD COUNTRY CODE FOR EXAMPLE my phone :
3333333 but i am in italy so +393333333
it will ask for the code which will be sent you via sms and so you have all the stuff set.
now how to save the history ? NOTE THAT YOU HAVE TAB AUTOCOMPLETE FEATURE SO….
let’s call Marta the babe
history Marta 10000
IMPORTANT … WRITE TO THE BABE SOME MESSAGE EVEN IF YOU DO NOT NEED TO :d
OR YOU CAN’T set the command correctly i mean i can do history Marta 10000 but it doens’t print anything …if for example i send a message on https://web.telegram.org/ to the babe and then i check the terminal i can do correctly the command , i hope this will help you because was frustrating when i tried :D i hope that this will be fixed soon
ok it will type all the crap in the console….
now select and copy and paste i know it’s nasty and a bit stupid maybe i can improve this but it’s what i needed :D
ORIGINAL IDEAS AND INITIAL VERSION WAS HERE :