Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielrf/metro-jornal-telegram
https://github.com/gabrielrf/metro-jornal-telegram
newspaper telegram telegram-channel
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrielrf/metro-jornal-telegram
- Owner: GabrielRF
- License: gpl-3.0
- Created: 2017-10-17T21:31:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T20:41:53.000Z (over 1 year ago)
- Last Synced: 2024-11-11T17:46:50.805Z (about 1 month ago)
- Topics: newspaper, telegram, telegram-channel
- Language: Python
- Homepage: https://t.me/MetroJornal
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metro Jornal Telegram Bot
A bot that send to you the current edition of [Metro newspaper](https://www.metrojornal.com.br/) on Telegram
# Setup
After cloning/downloading the repository, install required dependencies:
`pip install -r requirements.txt`
Create a file `bot.conf` containg:
```
[MetroJornal]
TOKEN =
CITY =
DEST =
````TOKEN` - Bot token generated by [BotFather](telegram.me/botfather)
`CITY` - City to be send as message with the file
`DEST` - Here is the ID from user that will receive the file. To find yours, the easier way is to send a message to [userinfobot](telegram.me/userinfobot). To send the file to public groups/channels, you can use the `@username` instead ID
# Run
Today (October, 19. 2017), the journal is available on the following locals:
| Local | Argument |
|--------------------|-----------------|
| São Paulo | `Metro-Sao-Paulo` |
| Belo Horizonte | `MetroBH` |
| Porto Alegre | `PortoAlegre` |
| Brasília | `Brasilia` |
| Curitiba | `Metro-Curitiba` |
| Campinas | `Metro-Campinas` |
| ABC | `Metro-ABC` |
| Maringá | `Maringa` |
| Espírito Santo | `EspiritoSanto` |Choose one local and use the item from Argument column in the following command on the console and see the bot working:
`python routine.py `