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).
|
||||
|
||||
```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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user