A simple Telegram bot that tells jokes of various types using the JokeAPI.
You can try the telegram bot by following this link.
- Python 3.7 or higher
telegrampackagerequestspackage
- Clone this repository: git clone https://github.com/saa1man/Jokes-bot.git
- Install the required packages: pip install -r requirements.txt
- Set your bot token as an env variable: $ export BOT_TOKEN=YOUR_BOT_TOKEN
- Run the bot: python main.py
- Start the bot by typing
/start. - Type
/helpto get a list of available commands. - Use the commands to get jokes of various types:
/anyfor a random joke of any type./programmingfor a random programming joke./miscfor a random miscellaneous joke./darkfor a random dark joke./punfor a random pun joke./spookyfor a random spooky joke./christmasfor a random Christmas joke.
If you find any issues or have any suggestions, feel free to create a pull request or submit an issue.