Skip to content

Instantly share code, notes, and snippets.

@banghasan
Created March 17, 2020 10:48
Show Gist options
  • Save banghasan/3263570bf5b105f288924921c0e667b0 to your computer and use it in GitHub Desktop.
Save banghasan/3263570bf5b105f288924921c0e667b0 to your computer and use it in GitHub Desktop.
Telegram Bash Launcher
#!/bin/bash
# ganti ke path dan aplikasinya Telegram
telegram=/home/banghasan/data/Download/Telegram/Telegram/Telegram
# info program:
program="TBL"
desc="Telegram Bash Launcher"
versi=1.0
release="17 Maret 2020"
programmer="bangHasan <[email protected]>"
website="https://www.banghasan.com"
channel="Telegram Grup @botphp"
# Start Program
if [ -z "$1" ]
then
echo "$program v$versi"
echo " $desc"
echo " $release"
echo ""
echo $programmer
echo " $website"
echo " Diskusi di $channel"
echo ""
echo "Berfungsi untuk menjalankan Telegram dengan multiple apps."
echo ""
echo " Format: ./tbl.sh <workdir>"
echo ""
echo "Contoh:"
echo " ./tbl.sh /home/data/telegram/1"
else
if [ -d "$1" ]; then
echo "Menjalankan Telegram"
$telegram -many -workdir $1 > /dev/null 2>&1 &
if [ $? -eq 0 ]
then
echo "... done."
else
echo "Workdir $1 : Gagal!" >&2
fi
else
echo "EROR: $1 Bukan direktori!"
fi
fi
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment