π₯ 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:
==================================
π§ By: https://t.me/DataScienceM
π 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! π€
Learn more: https://hackmd.io/@husseinsheikho/building-AI-powered-Telegram-bots
https://t.me/DataScienceMπ¦Ύ
# 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:
==================================
π§ By: https://t.me/DataScienceM
π 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