telegram-bot-manager

Read this in other languages: English, 简体中文
telegram-bot-manager is a robot manager for telegram.
Install
go get github.com/pefish/telegram-bot-manager/cmd/telegram-bot-manager
Quick start
telegram-bot-manager --config="/path/to/sample.yaml"
Robot manager will reply all updates automatically according to the rules in /path/to/sample.js
.
/path/to/config.yaml
token: "***"
commandsJsFile: "/path/to/sample.js"
/path/to/sample.js
var commands = {
"/test": {
desc: "测试命令",
func: function (args) {
// console.log(args)
return "test: " + JSON.stringify(args)
}
},
"/haha": {
desc: "有点意思",
func: function (args) {
return "xixi"
}
},
}
Document
doc
Contributing
- Fork it
- Download your fork to your PC
- Create your feature branch (
git checkout -b my-new-feature
)
- Make changes and add them (
git add .
)
- Commit your changes (
git commit -m 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create new pull request
Security Vulnerabilities
If you discover a security vulnerability, please send an e-mail to pefish@qq.com. All security vulnerabilities will be promptly addressed.
License
This project is licensed under the Apache License.