This is a bot that will be able to handle different requests regarding Astronomy Picture Of the Day in https://apod.nasa.gov/. It's still work in progress, not even in an alpha stage.
This bot used to be only a Telegram bot. I have that version running on a server. You can find it in https://t.me/ApodNasaBot, and the code in deprecated-* branches. Besides, the bot cannot interact, it only sends the picture everyday to the ones already subscribed. If you are interested in subscribing, just let me know. Beware of bugs.
The aim of this new version is to make a new bot compatible with many platforms released under AGPL and with help of as many contributors as possible. I want to make real free software, with a community behind, even a little one. ;)
The bot should be able to:
Do you want to contribute to the code? Glad to hear it, that's the purpose of putting it here! Simply send a patch to ~email@example.com. Take a look at https://git-send-email.io/ if you need help. =)
For running this bot, you will need
Execute the initialization script:
This will do the following steps:
config.cfgif it does not exist.
Then, you should get an API key from NASA and copy it in the corresponding section of
First, you should copy your bot token to the
config.cfg file. Next, you can run the Telegram bot with
$ pipenv run python telegram_bot.py
The bot will reply to the
apod command sending the apod of today or, if followed by a date, sending the one of that date.