sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git redis-server g++ libjansson-dev libpython-dev expat libexpat1-dev
sudo apt-get install lua-socket
& sudo apt-get install lua-sec
Clone the bot
git clone https://github.com/Ali6perspolisi/apiBot.git
cd apiBot
Then install bot using
lua bot.lua
bot token in bot.lua (config part)
local bot_api_key = "" -- token
local BASE_URL = "https://api.telegram.org/bot"..bot_api_key
local BASE_FOLDER = "" -- do not set this
And enter your telegram-id in admins table in bot.lua
local var = false
local admins = {YOUR ID}-- put your id here
for k,v in pairs(admins) do
Save bot.lua
bash launch.sh install && bash launch.sh
for Start the bot