Skip to content

nova-550/Telegram-Joke-Generator-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Telegram-Joke-Generator-Bot

πŸ€– Byte of Humor – AI Joke Generator Telegram Bot

Byte of Humor is a Telegram bot that delivers AI-generated jokes on any topic you provide! Built using LangChain, Groq, and Python, it uses powerful LLMs to deliver smart, funny, and contextual one-liners – right on Telegram.

πŸ“Œ How it Works

You mention the bot like this: @Byte_of_Humor_Bot (topic)

And it instantly replies with a hilarious AI-crafted joke about Python!

πŸš€ Features

  • Uses LangChain pipelines for LLM interaction
  • Powered by Gemma2-9b-It model via Groq API
  • Dynamic prompt engineering with ChatPromptTemplate
  • Clean Telegram integration with mention handling
  • Asynchronous and efficient response time

🧠 Prompt Engineering

The system prompt is:

"You are a Joking AI. Give me only ONE funny joke on the given topic."

Followed by a user-specified topic:

"generate a joke on the topic: Python"

πŸ› οΈ Tech Stack

  • Python
  • Telegram Bot API
  • LangChain
  • Groq (Gemma2-9b-It model)
  • dotenv for secure config

πŸ” Environment Variables

Create a .env file in the root directory and include:

TELEGRAM_API_KEY=your_telegram_bot_token
LANGCHAIN_API_KEY=your_langchain_key
LANGCHAIN_PROJECT=your_project_id
GROQ_API_KEY=your_groq_key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published