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
telegram
packagerequests
package
- 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
/help
to get a list of available commands. - Use the commands to get jokes of various types:
/any
for a random joke of any type./programming
for a random programming joke./misc
for a random miscellaneous joke./dark
for a random dark joke./pun
for a random pun joke./spooky
for a random spooky joke./christmas
for a random Christmas joke.
If you find any issues or have any suggestions, feel free to create a pull request or submit an issue.