Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 852 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 852 Bytes

AdminBot

An opensource Telegram Groups administrator bot

Modules

  1. database
  2. logic

Building

Commands:

git clone https://github.com/Azhant/AdminBot
cd AdminBot/sources/node
vim .env
npm i
npm run start

.env file:

BOT_TOKEN="Your Bot Token"
BOT_PASSWORD="Your Bot Password (The password you set for bot admins)"
BOT_ID="Your Bot ID"
DB_DIALECT="<sqlite|mysql>"
DB_HOST="Your Database Host"
DB_NAME="Your Database Name"
DB_USERNAME="Your Database Username"
DB_PASSWORD="Your Database Password"
DB_STORAGE="Your Database Path (Only for sqlite)"

Notes

If you are using mysql you should run these queries before starting bot:

ALTER DATABASE <YOUR_DB_NAME> charset=utf8;
CREATE TABLE `sessions` (`id` varchar(100) NOT NULL, `session` longtext NOT NULL, PRIMARY KEY (`id`));