Merge branch 'master' of github.com:yagop/telegram-bot
This commit is contained in:
commit
ab125fd94f
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "tg"]
|
||||||
|
path = tg
|
||||||
|
url = https://github.com/vysheng/tg
|
@ -4,7 +4,7 @@ telegram-bot
|
|||||||
Bot for telegram with [tg](https://github.com/vysheng/tg).
|
Bot for telegram with [tg](https://github.com/vysheng/tg).
|
||||||
|
|
||||||
```bash
|
```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
|
git submodule update --init --recursive
|
||||||
cd tg
|
cd tg
|
||||||
./configure
|
./configure
|
||||||
|
@ -8,10 +8,10 @@ if [ ! -f ./tg/telegram.h ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f ./tg/telegram ]; then
|
if [ ! -f ./tg/bin/telegram-cli ]; then
|
||||||
echo "Compile telegram first:"
|
echo "Compile telegram first:"
|
||||||
echo "cd tg && ./configure && make"
|
echo "cd tg && ./configure && make"
|
||||||
exit
|
exit
|
||||||
fi
|
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
|
||||||
|
Reference in New Issue
Block a user