Skip to content

minitanz/hayper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api-Telegram-bot

A simple telegram-bot wtitten in LUA based on file manager bot

You should have lua installed

Installation

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/BeatBotTeam/Api-Telegram-Bot.git
cd Api-Telegram-Bot

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 = {94746365}-- 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published