https://github.com/Mamdasn/telegram-bot-protests-in-berlin
The purpose of this code base is to facilitate access to the protests registered in Berlin on berlin.de. Users can access protests based on their distinguishing features, such as location, date, theme, and route.
https://github.com/Mamdasn/telegram-bot-protests-in-berlin
api bot docker-compose open-source protest-events telegram-api telegram-bot
Last synced: 10 months ago
JSON representation
The purpose of this code base is to facilitate access to the protests registered in Berlin on berlin.de. Users can access protests based on their distinguishing features, such as location, date, theme, and route.
- Host: GitHub
- URL: https://github.com/Mamdasn/telegram-bot-protests-in-berlin
- Owner: Mamdasn
- License: gpl-3.0
- Created: 2023-03-31T11:13:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T23:58:18.000Z (over 1 year ago)
- Last Synced: 2024-12-11T00:28:46.890Z (over 1 year ago)
- Topics: api, bot, docker-compose, open-source, protest-events, telegram-api, telegram-bot
- Language: Python
- Homepage:
- Size: 5.78 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-bot-protests-in-berlin
The purpose of this code base is to facilitate access to the protests registered in Berlin on berlin.de. Users can access protests based on their distinguishing features, such as location, date, theme, and route.
[](https://github.com/Mamdasn/telegram-bot-protests-in-berlin/actions/workflows/build-and-push-to-dockerhub-deploy-on-host.yaml)
Telegram bot: [@ProtestsBerlinBot:](https://t.me/ProtestsBerlinBot)
## Usage
After exporting the environmental variables `IP_ADDRESS` and `TG_BOT_TOKEN`, the docker instance is spawned by running `docker compose up --build -d`.
| PORT | USAGE |
|------|-------|
| 443 | Establish a connection with telegram server |
| 9051 | Send a request to tor control for a new ip |
IP rotation can be automated using crontab (in this case every 24 hours):
`0 */24 * * * echo -e 'AUTHENTICATE ""\r\nsignal NEWNYM\r\nQUIT' | nc localhost 9051`
## Documentation
The documentation can be found here: [Docs](https://mamdasn.github.io/telegram-bot-protests-in-berlin/)
## Disclaimer
Use at your own risk. The maintainers of this repository assume no liability for any misuse of this software.