Github Top Repositories
12.9K subscribers
377 photos
57 videos
9 files
1.32K links
Top GitHub repositories in one place πŸš€
Explore the best projects in programming, AI, data science, and more.
Download Telegram
πŸ”₯ Trending Repository: public-apis

πŸ“ Description: A collective list of free APIs

πŸ”— Repository URL: https://github.com/public-apis/public-apis

🌐 Website: https://APILayer.com/?utm_source=Github&utm_medium=Referral&utm_campaign=Public-apis-repo

πŸ“– Readme: https://github.com/public-apis/public-apis#readme

πŸ“Š Statistics:
🌟 Stars: 369K stars
πŸ‘€ Watchers: 4.4k
🍴 Forks: 38.8K forks

πŸ’» Programming Languages: Python - Shell

🏷️ Related Topics:
#api #lists #open_source #list #development #public #resources #dataset #free #software #apis #public_api #public_apis


==================================
🧠 By: https://t.me/DataScienceM
Forwarded from Machine Learning
In Python, building AI-powered Telegram bots unlocks massive potential for image generation, processing, and automationβ€”master this to create viral tools and ace full-stack interviews! πŸ€–

# Basic Bot Setup - The foundation (PTB v20+ Async)
from telegram.ext import Application, CommandHandler, MessageHandler, filters

async def start(update, context):
await update.message.reply_text(
"✨ AI Image Bot Active!\n"
"/generate - Create images from text\n"
"/enhance - Improve photo quality\n"
"/help - Full command list"
)

app = Application.builder().token("YOUR_BOT_TOKEN").build()
app.add_handler(CommandHandler("start", start))
app.run_polling()


# Image Generation - DALL-E Integration (OpenAI)
import openai
from telegram.ext import ContextTypes

openai.api_key = os.getenv("OPENAI_API_KEY")

async def generate(update: Update, context: ContextTypes.DEFAULT_TYPE):
if not context.args:
await update.message.reply_text("❌ Usage: /generate cute robot astronaut")
return

prompt = " ".join(context.args)
try:
response = openai.Image.create(
prompt=prompt,
n=1,
size="1024x1024"
)
await update.message.reply_photo(
photo=response['data'][0]['url'],
caption=f"🎨 Generated: *{prompt}*",
parse_mode="Markdown"
)
except Exception as e:
await update.message.reply_text(f"πŸ”₯ Error: {str(e)}")

app.add_handler(CommandHandler("generate", generate))


Learn more: https://hackmd.io/@husseinsheikho/building-AI-powered-Telegram-bots

#Python #TelegramBot #AI #ImageGeneration #StableDiffusion #OpenAI #MachineLearning #CodingInterview #FullStack #Chatbots #DeepLearning #ComputerVision #Programming #TechJobs #DeveloperTips #CareerGrowth #CloudComputing #Docker #APIs #Python3 #Productivity #TechTips


https://t.me/DataScienceM 🦾
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4
πŸ”₯ Trending Repository: public-apis

πŸ“ Description: A collaborative list of public APIs for developers

πŸ”— Repository URL: https://github.com/marcelscruz/public-apis

🌐 Website: https://publicapis.dev

πŸ“– Readme: https://github.com/marcelscruz/public-apis#readme

πŸ“Š Statistics:
🌟 Stars: 6.7K stars
πŸ‘€ Watchers: 67
🍴 Forks: 643 forks

πŸ’» Programming Languages: JavaScript

🏷️ Related Topics:
#lists #open_source #awesome #resources #apis #awesome_list #hacktoberfest #public_api #public_apis


==================================
🧠 By: https://t.me/DataScienceM