Skip to content
This is my space, where experience meets the will to start over. This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

  • Home
  • Coding Hub
    • Software & Project
      • Small Biz Ops – S.B.O.
        • SmallBizOps – Day 10/90
      • CRM/ERP
      • MyTracker
      • My Budget
    • Form Zero to “WoW”
      • JavaScript from Zero (Completed)
        • 2. Remove and Edit List Items
        • 3. Separate HTML and JavaScript, Use addEventListener and Conditional Logic
        • 4. Add Dynamic CSS Classes
        • 5. Save & Restore Your List with localStorage
        • 6 – Turn Your App into a Full To-Do List
      • Python from Zero (Completed)
        • 2. Lists & Loops
        • 3. Conditional Menus
        • 4. Edit & Remove Tasks (with closing: Python vs PHP and Large Data)
        • 5 – Save to File: Make Your Tasks Survive Restarts
        • 6 — Pythin from zero – Final Project Polishing: Numbering, Formatting, and Preparing for CSV
      • Rust – From Zero to “WoW” (Completed)
        • 1 – Setup and Project Structure in Rust
        • 2 – User input: validation and error handling
        • 3 – Rust from Zero to “WoW – BMI Calculation and Conditional Logic
        • 4 –Rust – Clear, Formatted Output
        • 5 – Rust – Final Thoughts: Precision as a Form of Respect
      • Go from Zero to “WoW” (Completed)
        • 1 – Why Go Is Perfect for a Personal Expense Tracker
        • 2 – Logging Expenses and Console Input
        • 3 – Go from Zero to “WoW” – Smart Filtering & Display Logic
        • 4 – Go – Saving Data to Local Files
        • 5 – Go – Final Project – Expense Tracker in Go
      • C++ from Zero to “WoW” (Completed)
        • 1 – Why C++ for file organization?
        • 2 – C++ – File Type Detection and Classification
        • 3 – C++ – Creating & Managing Subfolders
        • 4 – C++ – Safe File Movement and User Feedback
        • 5 – C++ – Order as Mental Clarity
      • Ubuntu – From Zero to “WoW” (Completed)
        • 2 – Ubuntu – The Desktop Environment and Essential Commands
        • 3 – Ubuntu – Managing Files, Folders, and Permissions
        • 4 – Ubuntu – Installing and Updating Software with APT and Snap
        • 5 – Ubuntu – Customizing the Desktop Environment
        • 6 – Ubuntu – Network and Device Configuration
        • 7 – Ubuntu – User Management & System Security — “The Cathedral of Permissions”
        • 8 – Ubuntu – The Talking Machine: Terminal & Bash Scripting
        • 9 – Ubuntu – Ubuntu as a Server or Development Environment
        • 10 – Ubuntu – Backup, Maintenance & Troubleshooting
    • Git Hub Repository
      • Small Biz Ops – S.B.O.
      • Mini ERP – PHP & MySQL
      • CleverCRM (Java, Spring Boot)
      • FraudWatch (Python, FastAPI + scikit-learn)
      • OnboardIQ – Smart Onboarding Portal (Flask + SQLite Demo)
    • ArchPilot
      • 1-Users & Roles, End-to-End (Architecture, Database, and Cross-Framework Code)
      • 2 – Client Registry (CRM) Across Frameworks
      • 3 – Project & Budget Tracker (ERP)
      • 4 – Approval Workflow Engine Multi-step routing, status tracking, escalation paths
      • 5 – Audit Trail & Versioning
    • Small Biz Ops – S.B.O.
  • Vivere in USA
  • P4Y
  • Testi poetici
    • 1 – Sospeso
    • 2 – Il bicchiere di vetro quieto
    • 3 – Quando l’amore inciampa
    • 4 – Ma chi siete davvero?
    • 5 – Above the Thread of Day
    • 6 – The Truth That Doesn’t Exist
    • 7 – All of You, I Miss
    • 8 – The Captain and the Ocean
    • 9 – Between Light and Mist
    • 10 – Il peso delle scelte
  • Contact
  • Admin
This is my space, where experience meets the will to start over.
This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

Coding – Step 6 – When a few minutes and the right tool are enough: a practical example with Pipedream and Telegram

Posted on 1 Luglio 202526 Luglio 2025 By Francesco

Those who know me know I don’t like to complicate things.
Whenever possible, I prefer lean, fast, elegant solutions.
You don’t always need to build complex software or monumental architectures — sometimes all it takes is a few lines of code, a bit of mental agility, and the right tools.


🔗 What is Pipedream?

Pipedream is an online platform that allows you to:
✅ connect different services and apps (APIs, databases, cloud, notifications, etc.)
✅ write and run small scripts in Node.js, Python, and other languages without setting up a server
✅ create workflows that trigger when something happens (e.g. a new order in the database, a new message in an app, a file change)

👉 In short: it’s like a smart “glue” that lets you automate operations without developing a full app or installing anything.


🔗 What is Telegram?

Telegram is a messaging app that allows you to:
✅ send messages, photos, videos, and files securely across devices
✅ create groups and channels to communicate with friends, teams, or large audiences
✅ use bots and advanced tools for automation, notifications, and integrations

👉 In short: it’s a fast, secure, and versatile communication platform that goes beyond simple chats.


📌 Practical example

In business, you often have to wait for an event: order confirmation, a status change, an approval.
The problem?
You can’t sit in front of a page or management system for hours waiting. You have work to do — and the information needs to reach you automatically when needed.

Let me show you a concrete example that you can replicate or adapt.


🗂 Real scenario

Imagine you have a MySQL database with a table called arc_order containing:




CREATE TABLE arc_order (
arc_order_id INT AUTO_INCREMENT PRIMARY KEY,
arc_order_number VARCHAR(50),
arc_order_customer VARCHAR(100),
arc_order_quantity INT,
arc_order_status VARCHAR(20), — e.g. Pending, Accepted, Shipped
arc_order_date DATETIME DEFAULT CURRENT_TIMESTAMP
);

Your goal:
👉 Receive a Telegram message as soon as an order changes status to “Accepted”, showing the ordered quantity.


🤖 How does the flow work?

✅ Pipedream queries the arc_order table every few minutes (e.g. every 5 minutes)
✅ It looks for orders where arc_order_status = 'Accepted'
✅ It sends a message to your Telegram bot with the order number and quantity
✅ It updates the record to avoid duplicate notifications


💻 Pipedream code example (Node.js)




javascriptCopiaModificaconst mysql = require(‘mysql2/promise’);
const axios = require(‘axios’);

// Database connection
const connection = await mysql.createConnection({
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: process.env.DB_NAME
});

// Get accepted orders not yet notified
const [rows] = await connection.execute(
“SELECT arc_order_id, arc_order_number, arc_order_quantity FROM arc_order WHERE arc_order_status = ‘Accepted'”
);

for (const order of rows) {
const message = `✅ Order ${order.arc_order_number} accepted. Quantity: ${order.arc_order_quantity}`;

// Send Telegram notification
await axios.post(`https://api.telegram.org/bot${process.env.TELEGRAM_TOKEN}/sendMessage`, {
chat_id: process.env.CHAT_ID,
text: message
});

// Update status to avoid duplicates
await connection.execute(
“UPDATE arc_order SET arc_order_status = ‘Notified’ WHERE arc_order_id = ?”,[order.arc_order_id]); } await connection.end();


🛠 How to set up the bot on Telegram (summary)

1️⃣ Search for BotFather on Telegram and create a new bot using /newbot
2️⃣ Get the API token
3️⃣ Start a chat with your bot (so you can get the chat_id)
4️⃣ Insert the token and chat_id as environment variables in Pipedream


🛑 How to stop the process

✅ In Pipedream:
Disable or delete the workflow with a click

✅ In Telegram:
Delete or deactivate the bot via BotFather
Or simply stop sending messages from your workflow


✨ Why is this approach useful?

✅ No need for big systems or costly development
✅ Integrates with what you already have (MySQL, Telegram bot)
✅ Saves your time and attention

A perfect example of how a simple idea and the right tools can make all the difference.


🌐 If you want to see more practical examples and fast solutions for managerial and business needs:
👉 www.francescoboschi.com/coding


📌 Legal notice

Pipedream and Telegram are mentioned purely as technical examples for educational purposes.
I have no official ties or collaborations with these platforms.

Post Views: 450

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Coding

Navigazione articoli

Previous post
Next post

Francesco

My name is Francesco Boschi, originally from Italy and currently based in the United States. For over twenty years, I’ve worked as a manager and consultant across diverse sectors — from education and cultural institutions to the food industry — developing skills in operational management, strategic consulting, and complex problem-solving. In recent years, I’ve combined this experience with a strong passion for software development, creating custom tools designed to simplify workflows and meet real business needs.

Relocating to the U.S. marks the beginning of a new chapter: a personal and professional decision driven by the desire to be close to my son and to embrace new challenges in a different environment. Today, my goal is to turn my experience into meaningful solutions, blending strategic vision with technical expertise to help people and organizations work more effectively.

I enjoy moving between different worlds, adapting tools and approaches to people and contexts. I bring leadership, flexibility, attention to detail, analytical thinking, and a strong problem-solving mindset — along with a deep curiosity to learn and grow. Above all, I believe in sharing: I’m always eager to offer my experience to support the growth of others.

Related Posts

Coding

Coding – Step 9.5 – JavaScript from Zero – Save & Restore Your List with localStorage

Posted on 17 Agosto 202517 Agosto 2025

Persist your To-Do list in the browser using localStorage. Save on each change, reload on startup, and keep the UI accessible with ARIA.

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

Coding – Step 12.5 – GO – Final Project – Expense Tracker in Go

Posted on 18 Ottobre 202518 Ottobre 2025

Simple expense tracker in Go with local file saving, CSV/JSON support, and trust-through-clarity design.

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

Coding – Step 2 – 🔐 Access Project Section

Posted on 6 Giugno 202526 Luglio 2025

In this section of the website, I share practical code examples that help highlight the differences between common web development technologies and structures. Each example is crafted to be clear, educational, and replicable, so anyone can understand the logic and experiment with the source code directly. 📌 Starting with a…

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More

Iscriviti alla nostra Newsletter

🤞 Let's keep in touch

We do not send spam! Read our Privacy policy for more information.

Controlla la tua casella di posta o la cartella spam per confermare la tua iscrizione

Cerca nel sito

©2026 This is my space, where experience meets the will to start over. | WordPress Theme by SuperbThemes