Welcome to the Alien Project Bot! This is a fun, interactive Telegram bot that provides various alien-themed functionalities, including diplomatic tips, UFO sightings, ISS (International Space Station) information, and a Klingon translator. You can also explore some out-of-this-world data and have a bit of fun with quirky commands!
- Start: Initialize the bot and view available options.
- Diplomatic Tips: Receive a random alien diplomatic tip.
- UFO Data: Get random UFO sighting data.
- Klingon Translator: Translate text into mock Klingon (reverse the text as a fun twist).
- ISS Info: Get the current position of the International Space Station (ISS).
- Exit: End the conversation and exit the bot.
- Clone this repository:
bash
Copy
git clone https://github.com/amirdhs/Alien-with-TelegramBot.git cd hackathon-alien-project
- Install the required dependencies:
bash
Copy
pip install python-telegram-bot requests
- Replace the placeholder BOT_TOKEN in the script with your own Telegram Bot Token (obtained from BotFather).
- Run the bot:
bash
Copy
python bot.py
Once the bot is up and running, you can interact with it on Telegram. Here are the available commands:
- /start: Start the bot and view the available options.
- Enter a number (1-5): Choose an option to explore specific features.
- Text for Klingon Translation: Input text, and the bot will return the translated text in mock Klingon (by reversing the text).
- Main Bot Logic: Defined in the
main()function where we set up the bot and conversation handler. - States: The bot uses a conversation handler with two states:
CHOOSING: Displays the menu and handles numeric selections.TRANSLATING: Handles the Klingon translation functionality.
- Diplomatic Tips: The bot returns random diplomatic tips using a predefined list.
- UFO Data: Provides mock UFO sighting data for fun.
- ISS Info: Retrieves live data on the ISS position using an external API.
- Start Command:
- The bot will ask you to choose from a list of options.
- Diplomatic Tip Command:
- Bot responds with a random diplomatic tip.
- UFO Data Command:
- Bot sends a random UFO sighting report.
- Klingon Translator:
- The bot translates text by reversing it for fun.
- ISS Info:
- Get live ISS position data.