From 8d548dd9d5813ebb5996a9d18de818a717da5cb8 Mon Sep 17 00:00:00 2001 From: yago Date: Thu, 4 Sep 2014 01:11:24 +0200 Subject: [PATCH 1/3] back to vysheng/tg --- .gitmodules | 3 +++ tg | 1 + 2 files changed, 4 insertions(+) create mode 160000 tg diff --git a/.gitmodules b/.gitmodules index e69de29..056ba89 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "tg"] + path = tg + url = https://github.com/vysheng/tg diff --git a/tg b/tg new file mode 160000 index 0000000..f38ab35 --- /dev/null +++ b/tg @@ -0,0 +1 @@ +Subproject commit f38ab35b5a89d233eb80e668a1bc3c470262a69a From 66e9831d7989c00671fa0abfe82182a09a03a04f Mon Sep 17 00:00:00 2001 From: yago Date: Thu, 4 Sep 2014 01:18:08 +0200 Subject: [PATCH 2/3] libevent-dev --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 363d3ad..9186742 100644 --- a/README.md +++ b/README.md @@ -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 From b3b52c20b3c19e18a17b5e81ad20f93e7eb6b190 Mon Sep 17 00:00:00 2001 From: yago Date: Tue, 9 Sep 2014 23:17:24 +0200 Subject: [PATCH 3/3] Updated launch script --- launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch.sh b/launch.sh index 3e70132..1057d6b 100755 --- a/launch.sh +++ b/launch.sh @@ -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