255
Suscriptores
Sin datos24 horas
+27 días
+230 días
Archivo de publicaciones
Broadcast APITip 5: Enter Security Question’s answer carefully, once forgot there ain’t any way to know it or handle Auth Key Verifications, Save the Answer at a safe place And remember Security answer is Case Sensitive
Repost from Pπᴏ√€kTᴏiD
Project Buildgram 🛄 {Powered by Projectoid}
is now live!
Built for just You!
Go check out @Buildgram ☄️
Broadcast APITip 4: If you have initiated a broadcast and its in a progress and no webhook responses, then your bot may have hit Rate limit by telegram, as soon as the limit is cooldown you will receive next webhook update in progress. This may take time as per the limits by telegram. Have patience it’ll be processed surely!
Broadcast APITip 3: Bot Auth keys are expired in 30 days of creation, so it is advised to revoke and update your auth keys for bots in every 25-27 days atleast, to not loose access right away. Revoke:
Manage Bot > Security > Revoke Auth Key
Never Try to Test us!
Well he can Re use the bots when he rejoins channel and restart the bot.
Broadcast APITip 2: Don’t Block @ProjectoidBot and don’t leave @Projectoid & @ProjectoidApi, to continue using broadcast api for your bots!
👩💻 Example Code for Broadcast API in Node.js with Telegraf
Get your Auth key at @ProjectoidBotGenerated by qwen aiconst { Telegraf } = require('telegraf'); const axios = require('axios'); // Projectoid API Configuration const BASE_URL = 'https://api.projectoid.in/v2/telegram/bot{bot_id}'; const AUTH_KEY = 'your-auth-key'; // Replace with your Auth Key const BOT_TOKEN = 'your-bot-token'; // Replace with your Bot Token const BOT_ID = '12345678'; // Replace with your Bot's Telegram ID const headers = { Authorization: `Bearer ${AUTH_KEY}`, 'X-Bot-Token': BOT_TOKEN, }; // Initialize Telegraf Bot const bot = new Telegraf(BOT_TOKEN); /** * Initiate a Broadcast via Projectoid API */ async function initiateBroadcast(chatType, message) { const payload = { author: 2345678901, // Replace with your Telegram User ID method: 'sendMessage', list_id: 'global', // Replace with your List ID chat_type: chatType, webhook_url: `https://example.com/webhook`, // Replace with your Webhook URL message: { text: message, disable_web_page_preview: true, }, }; try { const response = await axios.post(`${BASE_URL.replace('{bot_id}', BOT_ID)}/broadcast`, payload, { headers }); return response.data; } catch (error) { console.error('Error initiating broadcast:', error.response?.data || error.message); throw error; } } /** * Handle Incoming Webhook Updates from Telegram */ bot.on('text', async (ctx) => { const message = ctx.message.text; if (message === '/broadcast') { try { const broadcastResponse = await initiateBroadcast('all', 'Hello! This is a test broadcast message.'); ctx.reply(`Broadcast initiated! ID: ${broadcastResponse.result.id}`); } catch (error) { ctx.reply('Failed to initiate broadcast. Please try again.'); } } else { ctx.reply('Send /broadcast to initiate a broadcast.'); } }); /** * Start the Telegraf Bot */ bot.launch().then(() => { console.log('Bot is running...'); }); // Graceful Shutdown process.once('SIGINT', () => bot.stop('SIGINT')); process.once('SIGTERM', () => bot.stop('SIGTERM'));
Broadcast APITip 1: Never share your Auth Key with anyone around! Bymistake if shared, immediately Revoke the key at @ProjectoidBot
🅿️ New Update: Broadcast API v2.0.2 📣
We’ve upgraded the Broadcast API from v2.0.1-beta to v2.0.2!
What’s New:
• Enhanced speed and stability
• Fixed
addChat list_id passing issue
• Resolved broadcast webhook bug
• Added Revoke Auth Key button in @Projectoidbot (under Security, visible under specific conditions)
• New: Live Broadcast Stats Dashboard now available at projectoid.in/dashboard/api/broadcast
Action Required:
Update your bot to use the latest version via @ProjectoidBot. New users are automatically on v2.0.2.
Docs: docs.projectoid.in
👍 @Projectoid • @ProjectoidApi
#DesignedForDevelopers #BuiltForYouRepost from Pπᴏ√€kTᴏiD
🅿️ The Broadcast API—one of our most anticipated and widely requested APIs—was initially launched in beta but had stability issues.
We’ve been working on a stable and upgraded version, which is now almost ready! However, due to unforeseen circumstances, its release has been delayed by a week or two.
Rest assured, we’ll be back with an update very soon!
In the meantime, explore our other APIs at docs.projectoid.in.
#DesignedForDevelopers #BuiltForYou
🅿️ New API Segment Launch 🆕
🚀 Tools API Segment is Live!
Retrieve app details & real-time weather data.
🔹 Supports App Store, Play Store & Weather
🔹 Easy & powerful utilities
• Explore & use it now: https://docs.projectoid.in/• Navigate to the Tools API page (via Next buttons or Sidebar) 👍 @Projectoid • @ProjectoidApi #DesignedForDevelopers. #BuiltForYou.
🔜 Documentation Page Deep Linking is under construction, which will help us to share the direct link to any section/api of the docs.
🅿️ New API Segment Launch 🆕
🚀 Ledger API Segment is Live!
Fetch transactions & generate UPI QR codes.
🔹 Supports Paytm & BharatPe
🔹 Secure & fast integration
• Explore & use it now: https://docs.projectoid.in/👍 @Projectoid • @ProjectoidApi #DesignedForDevelopers. #BuiltForYou.
Repost from Pπᴏ√€kTᴏiD
🚀 Projectoid is LIVE! The Future Starts Now! 🎉
The wait is finally over! Projectoid is now officially LIVE, bringing you a platform designed to revolutionize the way developers work and build.
🌐 Explore Now: https://projectoid.in
What’s inside?
✅ Powerful tools to streamline your development.
✅ Seamless experience built for efficiency.
✅ A game-changing platform crafted for developers.
This is just the beginning—join us and shape the future of development!
Designed for Developers. Built for You. 🚀
#Projectoid #NowLive #ForDevelopers
