diff options
Diffstat (limited to 'telegram-history-dump.sh')
-rw-r--r-- | telegram-history-dump.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/telegram-history-dump.sh b/telegram-history-dump.sh new file mode 100644 index 000000000000..9873de3287ab --- /dev/null +++ b/telegram-history-dump.sh @@ -0,0 +1,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 |