Merge branch 'master' of github.com:yagop/telegram-bot

This commit is contained in:
yagop 2014-09-11 11:47:11 +02:00
commit ab125fd94f
3 changed files with 6 additions and 3 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "tg"]
path = tg
url = https://github.com/vysheng/tg

View File

@ -4,7 +4,7 @@ telegram-bot
Bot for telegram with [tg](https://github.com/vysheng/tg).
```bash
sudo apt-get install lua-socket libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev
sudo apt-get install lua-socket libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev
git submodule update --init --recursive
cd tg
./configure

View File

@ -8,10 +8,10 @@ if [ ! -f ./tg/telegram.h ]; then
exit
fi
if [ ! -f ./tg/telegram ]; then
if [ ! -f ./tg/bin/telegram-cli ]; then
echo "Compile telegram first:"
echo "cd tg && ./configure && make"
exit
fi
./tg/telegram -k tg/tg-server.pub -s ./bot/bot.lua
./tg/bin/telegram-cli -k tg/tg-server.pub -s ./bot/bot.lua