Skip to content

Telegram Bot that sends the NASA APOD to @AstropixChannel

Notifications You must be signed in to change notification settings

Frax7/AstropixBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AstropixBot

A bot that sends to a certain chat the Astronomic Picture of the Day from the NASA APOD page.

You can join the telegram chanel @AstropixChannel wehre this bot sends the daily pictures 🤩

Dependencies

Install all dependencies with:

pip install -r requirements.txt

Credentials

  • APOD api key which you can get easly here.
  • Telegram Bot Token which you can get from the BotFather.
  • Your personal chat_id for testing purposes.
  • Your channel chat_id where the bot will send the information.

Once you have all credentials, edit the Constants.py file with them.

Execute

Execute the bot with python ./bot/AstropixBot.py and see it in action!

You can text to the bot (any text) and you'll get a bunch of info such us message info, APOD API call, etc.

Acknowledgments

Thanks to the original creator of the youtubeID file (original gist).

And also to @Alfedi for hosting this bot in its beginnings, ty bro.

Thanks to Forgis for being Forgis :D Long live to 23.