Bot to manage Groupchats.
- First, clone
https://github.com/vysheng/tg.git
to your server. - Then, clone this project elsewhere.
- run telegram-cli for one time to initate your credential.
- register a bot at @Botfather (WARNING: DISABLE THE PRIVACY MODE OR THIS BOT WILL NOT WORK!)
- Copy
pmlite.db
to somewhere - copy config.example.js to config.js, then edit content inside. (socket path is at
/where/you/clone/tg/telegram.sock
if follow this instruction) - Open an screen, run
bin/telegram-cli -S telegram.sock -I
npm install
node index
You are done!
Add your registered bot to group you own, then ask /help
- Group photo must be manually upload to a specific folder
- Lack of exceptional catching.
- Lack of Database Migrating way.