Flex Coder
🚀 Introducing FlexGram 🎉 After months of development, I'm finally launching FlexGram, a Telegram Bot Framework built to make bot development faster and more organized. ✨ Features: • Clean coding structure • Sever host bot support • Easy command management…
Want me to start releasing FlexGram framework code 🤔?
Anonymous Poll
90%
Yes, release it ✅
10%
No, thanks ❌
❤4👍2🔥2
This media is not supported in your browser
VIEW IN TELEGRAM
Edit your ChatGpt image without prompt 😱
👍3❤2😁1
Guys, my mother's health is not good. Please pray for her. I hope she will be alright soon 😭🙏
🤯16❤13🙏5🐳2
This media is not supported in your browser
VIEW IN TELEGRAM
Difference Between Webhook & Polling 😉
❤2👍2🤩2
Flex Coder
Want me to start releasing FlexGram framework code 🤔?
Code post will be starting soon, so be active to get FlexGram codes 🤗
😍2❤1
Add balance to user account 💸
📁 Filename:
addBal.js👨💻 Code:
const ADMIN_ID = process.env.ADMIN_ID;
if (flex.user.id != ADMIN_ID) return;
await sendMessage("*Enter your user id 🆔*", "MARKDOWN");
await waitForAnswer("/getId");
📁 Filename:
getId.js👨💻 Code:
const ADMIN_ID = process.env.ADMIN_ID;
if (flex.user.id != ADMIN_ID) return;
await USER.setProperty("id", flex.message);
await sendMessage("*Enter your balance 💸*", "MARKDOWN");
await waitForAnswer("/getBal");
📁 Filename:
getBal.js👨💻 Code:
const ADMIN_ID = process.env.ADMIN_ID;
const id = await USER.getProperty("id");
const btn = [
[
{
text: "Claim Reward 🎉",
callback_data: /claimBal ${id} ${flex.message} ,
},
],
];
if (flex.user.id != ADMIN_ID) return;
await BOT.sendMessage(
id,
"*🎉 Congratulation you have get points from admin*\n\nClick following button to claim reward!!",
"MARKDOWN",
btn,
);
await sendMessage(*Point add request sended to *${id} ✅, "MARKDOWN");
await USER.deleteProperty("id");
await clearWait();
📁 Filename:
claimBal.js👨💻 Code:
const parts = flex.params.split(" ");
const id = parts[0];
const amount = parseFloat(parts[1]);
if (flex.user.id != id) return;
if (!isCallback) return;
await FLEX.setProperty("balance", amount);
await answerCallback("Balance added successfully ✅", true);⚠️ Note: add your user id in .env file like ADMIN_ID=1234567890#FlexGram
👍3❤2👌2
🎉 FlexGram v1.0.1 is Here! 🎉
This update focuses on reducing boilerplate code and improving flexibility.
🔗 Check it out:
https://tinyurl.com/FlexGram
⭐ Star the project and comment features you'd like to see in the next FlexGram update 👇
This update focuses on reducing boilerplate code and improving flexibility.
✨ What's New
🔹 Smart Property Operations
getProp() and setProp() on BOT, USER, TEMP, and FLEX now support .add() and .remove().
• Numbers → add / subtract
• Strings → append / remove
• Arrays → push / filter
No more manual read-modify-write operations.
🔹 Flexible Options Object
chat_id and other options can now be placed anywhere inside the options object for all BOT and API methods.
BOT.sendMessage("Hello", { parse_mode: "HTML", chat_id: 123 })
API.sendMessage({ text: "Hello", chat_id: 123 })
No fixed parameter order required.
🔹 No More await
BOT, USER, TEMP, FLEX, API, and HTTP methods now handle promises automatically and log errors internally.
BOT.sendMessage("Hello")
Less code. Same result.
🔗 Check it out:
https://tinyurl.com/FlexGram
⭐ Star the project and comment features you'd like to see in the next FlexGram update 👇
❤️ Thank you for supporting FlexGram
👍3🐳2
Flex Coder
🎉 FlexGram v1.0.1 is Here! 🎉 This update focuses on reducing boilerplate code and improving flexibility. ✨ What's New 🔹 Smart Property Operations getProp() and setProp() on BOT, USER, TEMP, and FLEX now support .add() and .remove(). • Numbers → add / subtract…
Comment down which features you wanna see in FlexGram next update 👇
👍3👌2
📢 YouTube Channel Update
😔 Tomorrow's YouTube video was supposed to be uploaded, but unfortunately around 80% of the edited video got deleted.
I'm currently working on re-editing everything, which may take some extra time. Because of this, the video might be uploaded later tomorrow, or it may be released on another day. ⏳
🚀 I know I haven't uploaded for the past 2-3 weeks due to some issues, and now this video deletion problem has caused another delay. However, don't worry, the video is coming soon!
🔥 Also, there will be new FlexGram updates and other exciting improvements coming soon as well.
During the past few weeks when I couldn't upload videos, I was still working behind the scenes, fixing bugs, making updates, and launching new features. That's why you've seen some short videos and update posts instead. 💻✨
💝 Thank you for your patience and support.
👍3❤2
New Video Uploaded 👇
https://youtu.be/uUkX1F71j1g
📹 Video Description:
In this tutorial, you'll learn how to create your own AI chat website for free using a Google AI Studio API Key, no paid subscription required. This is perfect for beginners and developers who want to build a ChatGPT-like AI chatbot, similar to Gemini or other popular AI chat tools, without spending a single rupee.
https://youtu.be/uUkX1F71j1g
📹 Video Description:
In this tutorial, you'll learn how to create your own AI chat website for free using a Google AI Studio API Key, no paid subscription required. This is perfect for beginners and developers who want to build a ChatGPT-like AI chatbot, similar to Gemini or other popular AI chat tools, without spending a single rupee.
⚠️ Note: Subscribe Backup Channel: https://youtube.com/@flecdev
😍2❤1👍1
Media is too big
VIEW IN TELEGRAM
This platform can host website for free & no sign up required 😱
👍3🎉2🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
😱 5 Secret VS CODE keyboard shortcuts that everyone should know
🐳2❤1👍1
New Video Uploaded 👇
https://youtu.be/40leM39aRSs
📹 Video Description:
In this video, I have shown how you can create a Telegram AI Chatbot in just 10 minutes with amazing text editing animation effects. If you want to build your own AI chatbot for Telegram without spending hours coding, then this video is for you.
https://youtu.be/40leM39aRSs
📹 Video Description:
In this video, I have shown how you can create a Telegram AI Chatbot in just 10 minutes with amazing text editing animation effects. If you want to build your own AI chatbot for Telegram without spending hours coding, then this video is for you.
⚠️ Note: Subscribe Backup Channel: https://youtube.com/@flecdev
❤1👍1🙏1
New Video Uploaded 👇
https://youtu.be/XFMHjHuSMwg
📹 Video Description:
In this video, I have shown how you can create a Telegram bot that sends OTPs to email without coding in just 10 minutes. If you are a beginner and want to build an OTP sender bot quickly and easily, then this video is for you.
https://youtu.be/XFMHjHuSMwg
📹 Video Description:
In this video, I have shown how you can create a Telegram bot that sends OTPs to email without coding in just 10 minutes. If you are a beginner and want to build an OTP sender bot quickly and easily, then this video is for you.
⚠️ Note: Subscribe Backup Channel: https://youtube.com/@flecdev
🔥1😁1
What topics would you like me to cover in future videos 🤔?
Drop your suggestions in the comments. I'm looking for new video ideas, so let me know what you'd like to learn, see, or explore next 👇
👍3🔥1🕊1
🌟 Automating client feedback loops on autopilot
Clients rarely fill out feedback forms emailed to them, but they'll tap a button in Telegram in two seconds. I built this lightweight flow to capture star ratings and text reviews directly inside our support chat. It stores the rating in memory, shifts the user context to wait for their text comments, and then commits everything to their persistent database profile in one seamless conversational experience.
📁 Filename:
👨💻 Code:
📁 Filename:
👨💻 Code:
📁 Filename:
👨💻 Code:
💡 Always remember to call
#FlexGram
Clients rarely fill out feedback forms emailed to them, but they'll tap a button in Telegram in two seconds. I built this lightweight flow to capture star ratings and text reviews directly inside our support chat. It stores the rating in memory, shifts the user context to wait for their text comments, and then commits everything to their persistent database profile in one seamless conversational experience.
📁 Filename:
command/feedback.js👨💻 Code:
sendMessage("How would you rate our service today?", {
buttons: [
[
{ text: "⭐ 1", command: "/rate 1" },
{ text: "⭐ 2", command: "/rate 2" },
{ text: "⭐ 3", command: "/rate 3" },
{ text: "⭐ 4", command: "/rate 4" },
{ text: "⭐ 5", command: "/rate 5" }
]
]
})📁 Filename:
command/rate.js👨💻 Code:
TEMP.setProp("rating", params)
sendMessage("Awesome! Now, please type a short comment about your experience:")
waitForAnswer("save")📁 Filename:
command/save.js👨💻 Code:
const rating = await TEMP.getProp("rating").value()
USER.setProp("last_rating", rating)
USER.setProp("last_comment", message)
sendMessage("Thank you! Your feedback has been saved securely.")
clearWait()💡 Always remember to call
clearWait() at the end of your waiting sequence, or your user will remain locked inside that input handler forever.⚠️ Note: Make sure yourFIREBASE_URLandFIREBASE_SECRETenvironment variables are configured so the persistent feedback data is successfully saved to your database.
#FlexGram
👍2🐳2
🛰️ Quick-and-dirty uptime monitor in 15 lines of code
I got tired of logging into heavy monitoring dashboards just to check if my clients' staging servers were still breathing during weekend deployments. So I built this ultra-lightweight uptime command panel that pings any endpoint on demand right inside Telegram. It uses Firebase to save your target endpoint and edits the interface in-place with inline callbacks so you aren't spamming your own chat history.
📁 Filename:
👨💻 Code:
📁 Filename:
👨💻 Code:
💡 To prevent Telegram from hitting webhook timeouts, keep your monitored servers' cold starts under 5 seconds or the callback spinner might hang.
#FlexGram
I got tired of logging into heavy monitoring dashboards just to check if my clients' staging servers were still breathing during weekend deployments. So I built this ultra-lightweight uptime command panel that pings any endpoint on demand right inside Telegram. It uses Firebase to save your target endpoint and edits the interface in-place with inline callbacks so you aren't spamming your own chat history.
📁 Filename:
command/monitor.js👨💻 Code:
if (!params) return sendMessage("Provide a URL: `/monitor https://myapi.com`", { parse_mode: "Markdown" });
USER.setProp("url", params);
sendMessage(`Now tracking \`${params}\`. Click below to run a test.`, {
buttons: [{ text: "Check Status ⚡", command: "/status" }],
parse_mode: "Markdown"
});📁 Filename:
command/status.js👨💻 Code:
const url = await USER.getProp("url").value();
if (!url) return sendMessage("Set a URL first: `/monitor <url>`", { parse_mode: "Markdown" });
sendChatAction("typing");
const ok = await HTTP.get({ url }).then(() => true).catch(() => false);
const text = `*Uptime Monitor*\n\nURL: \`${url}\`\nStatus: ${ok ? "✅ *ONLINE*" : "🚨 *OFFLINE*"}`;
const btns = [{ text: "🔄 Refresh Status", command: "/status" }];
if (isCallback) {
answerCallback(ok ? "Systems nominal!" : "Server unreachable!", !ok);
editCallbackMessage(text, btns, message_id);
} else {
sendMessage(text, { buttons: btns, parse_mode: "Markdown" });
}💡 To prevent Telegram from hitting webhook timeouts, keep your monitored servers' cold starts under 5 seconds or the callback spinner might hang.
⚠️ Note: Ensure your target URLs include the full protocol like https:// to prevent HTTP client errors.
#FlexGram
👌2👍1🔥1
🔑 Shared office space hacks on a budget.
I had a local co-working client asking for a quick way to let members book phone booths without paying for heavy enterprise scheduling software. We solved it in an hour by building a shared dashboard right inside their Telegram group using Firebase-backed global state. When any member claims or vacates a room, the shared board updates in real-time for everyone else using snappy inline callbacks.
📁 Filename:
👨💻 Code:
📁 Filename:
👨💻 Code:
Make sure you use
#FlexGram
I had a local co-working client asking for a quick way to let members book phone booths without paying for heavy enterprise scheduling software. We solved it in an hour by building a shared dashboard right inside their Telegram group using Firebase-backed global state. When any member claims or vacates a room, the shared board updates in real-time for everyone else using snappy inline callbacks.
📁 Filename:
command/rooms.js👨💻 Code:
const r1 = await BOT.getProp("room1").value() || "Free";
const r2 = await BOT.getProp("room2").value() || "Free";
sendMessage("Quiet Room Bookings:\n\nRoom 1: " + r1 + "\nRoom 2: " + r2, {
buttons: [
[{ text: r1 === "Free" ? "🟢 Book Room 1" : "🔴 Vacate Room 1", command: "/book 1" }],
[{ text: r2 === "Free" ? "🟢 Book Room 2" : "🔴 Vacate Room 2", command: "/book 2" }]
]
});📁 Filename:
command/book.js👨💻 Code:
const roomKey = "room" + params;
const current = await BOT.getProp(roomKey).value() || "Free";
const nextState = current === "Free" ? user.first_name : "Free";
BOT.setProp(roomKey, nextState);
answerCallback("Room " + params + " updated!");
const r1 = await BOT.getProp("room1").value() || "Free";
const r2 = await BOT.getProp("room2").value() || "Free";
editCallbackMessage("Quiet Room Bookings:\n\nRoom 1: " + r1 + "\nRoom 2: " + r2, [
[{ text: r1 === "Free" ? "🟢 Book Room 1" : "🔴 Vacate Room 1", command: "/book 1" }],
[{ text: r2 === "Free" ? "🟢 Book Room 2" : "🔴 Vacate Room 2", command: "/book 2" }]
], message_id);
Make sure you use
BOT instead of USER properties here so the state updates globally for all members instead of being sandboxed to the clicking user. 🕒⚠️ Note: Make sure yourFIREBASE_URLandFIREBASE_SECRETenvironment variables are configured so the bot can persist the global room state across restarts.
#FlexGram
👍2🔥1