Send info getting from API to telegram.
Third part of a system which search, save and share info.
It is good idea to share info.
Datapath it is like telepath or astropath
(c) Author
Enjoy.
Need to fill settings.toml
with next important variables:
API_KEY
. You can find this data here - https://my.telegram.org/appsQUERY
. Key word to search for in articles.API_TOKEN
. Ask BotFather in telegram.CHAT_ID
. Use this to find chat ID where you want to send messages - https://api.telegram.org/botAPI_TOKEN/getUpdatesdocker-compose up -d
ormake dstart
- ...
- PROFIT !!!
[DB]
DB_API_URL = "http://attainments_sanctuary:8888"
[NEWS_API]
API_KEY = ""
QUERY = "computer science"
LANGUAGE = "en"
[TELEGRAM]
API_TOKEN = ""
CHAT_ID = ""
[TIMINIGS]
TIME_TO_SEARCH = "02:00"
TIME_TO_SEND_START = "10:00"
TIME_TO_SEND_END = "20:00"
SENDING_INTERVAL = 300
For more info check:
- API & DB repo - https://github.com/CoolCoderCarl/attainments_sanctuary
- ETL repo - https://github.com/CoolCoderCarl/epistolary
Still have questions ? Google it.