TG 自带的搜索太残废了,那么为何不提取出来自己 grep 呢?

我们需要两个东西,一个是 Telegram-CLI,另外一个是 telegram-history-dump

首先我们把这两个 repo clone 下来.

git clone https://github.com/vysheng/tg.git
git clone https://github.com/tvdstaaij/telegram-history-dump

然后我们去编译 cli.

cd tg
apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make
./configure
make

编译完成之后启动它.

cd bin
telegram-cli --json -P 9009

然后打开新的终端窗口,开始 dump.

cd telegram-history-dump
./telegram-history-dump.rb

接下来等一会,在 output/json 中就可以见到以 jsonl 格式保存的聊天记录了,接下来想做什么就随便来了.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.