https://github.com/brokenpip3/tg2
Telegram bash bot made easy
https://github.com/brokenpip3/tg2
Last synced: about 1 month ago
JSON representation
Telegram bash bot made easy
- Host: GitHub
- URL: https://github.com/brokenpip3/tg2
- Owner: brokenpip3
- Created: 2020-11-27T00:10:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T00:58:30.000Z (over 4 years ago)
- Last Synced: 2025-02-05T18:05:04.604Z (3 months ago)
- Language: Python
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TG2 - Telegram bash bot made easy
Create your bot with a simple config file and you are ready to go!

## Usage
Create your config file, see [examples](./examples)
### Docker
```shell
export TG_TOKEN="123455:32233"
docker run -i -t --rm -e TGTOKEN=${TG_TOKEN} -v myconfigfile.yaml:/usr/src/bot/config.yaml brokenpip3/tg2:0.0.1
```### Kubernetes
```shell
kubectl create secret generic tg2-token --from-literal=TGTOKEN=2121211212
kubectl create configmap tg2-setting --from-file=config.yaml=myconfig.yaml
kubectl apply -f kubernetes/deployment.yaml
```## Todo
- [X] install prerequisites before bot start
- [ ] better docs
- [ ] hot reload config file
- [ ] pip package
- [ ] handle more the one argument in chat commands