Skip to content

It's A Bot Based On TelegramAPI For Chating With Users Got Reported In Telegram

License

Notifications You must be signed in to change notification settings

m4h4n/TelegramLuaBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TelegramLuaBot v2


It's A Bot Based On TelegramAPI,GroupBulter For Chating With Users Got Reported In Telegram

#HELP

In Pm:

/a --This Will Send Pm To Admin

/u (VIA REPLY) --This Will Send Back Pm To User

In Admin Pm

/blacklist --This Will Block User To Send Pm

/blacklist --This Will Block User To Send Pm

/whitelist --This Will UnBlock User To Send Pm

/whitelist --This Will UnBlock User To Send Pm

Atterntion!

you can unblock user,with sending /blacklist or /blacklist twice!

Get Started You must have Lua (5.2+), LuaSocket, and LuaSec installed.

How to install LuaRocks:

# Download and install LuaSocket and LuaSec

 wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz
 tar zxpf luarocks-2.2.2.tar.gz
 cd luarocks-2.2.2
 ./configure; sudo make bootstrap
 sudo luarocks install luasocket
 sudo luarocks install luasec
 cd ..

Then GitClone the github repository:

# Clone the repo

 git clone https://github.com/ThisIsArman/TelegramLuaBot.git
 cd TelegramLuaBot

Admins

Bot Need To Know Where To Send Pms To? Open config.lua in a text editor and Do the following changes:

• Make sure that privacy is disabled, otherwise the bot won't see replied messages unless they starts with '/'. Write /setprivacy to BotFather to check the current setting.

• Set bot_api_key to the authentication token you received from the BotFather.

• Set admin as your Telegram ID.


To start the bot, run bash launch.sh. To stop the bot, press Ctrl+c twice.

You may also start the bot with lua bot.lua, but then it will not restart automatically.

##Contributors Everybody is free to contribute to TelegramLuaBot.

The creator who created This Bot is Arman. He can be contacted via Telegram . Special Thanks To

The creator and maintainer of otouto is topkecleon. He can be contacted via Telegram, Twitter, or email.

The kanger who created group butler :Telegram.


About

It's A Bot Based On TelegramAPI For Chating With Users Got Reported In Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 99.9%
  • Shell 0.1%