summarylogtreecommitdiffstats
path: root/telegram-history-dump.sh
blob: 9873de3287ab60e77c0f85670d6a521401463b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ ! -d ~/telegram-history-dump ]; then
    mkdir ~/telegram-history-dump
fi
if [ ! -f ~/telegram-history-dump/config.yaml ]; then
    cp /opt/telegram-history-dump/config.yaml ~/telegram-history-dump/config.yaml
    cat << EOF
Created configuration file at ~/telegram-history-dump/config.yaml
Please edit this config file first and then execute this command again

Also REMEMBER you MUST execute telegram-cli first with:
    telegram-cli --json -P 9009

EOF
    exit 0
fi

ruby /opt/telegram-history-dump/telegram-history-dump.rb