Read this in other languages: English, 简体中文
telegram-bot-manager is a robot manager for telegram.
go get github.com/pefish/telegram-bot-manager/cmd/telegram-bot-manager
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"
}
},
}
- 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
If you discover a security vulnerability, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.
This project is licensed under the Apache License.