This is a telegram bot based on the Telegram API and GroupButler for chatting with users which got reported in Telegram.
In private:
/a -This will send a message to the admin.
/u (VIA REPLY) - This will send a reply to the user/sender.
Admin commands:
/blacklist -This will block the user to send messages. (using id)
/blacklist -This will block the user to send messages. (using username)
/whitelist -This will unblock the user to send messages. (using id)
/whitelist -This will unblock the user to send messages. (using username
Atterntion!
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
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.
##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.