جدول يومك على تيليجرام

كل صباح، تصلك مواعيد اليوم في رسالة تيليجرام واحدة مرتبة.

سهل توفّر ~2 ساعة شهريًا الإنتاجيةبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: جدول زمني — كل يوم الساعة 7:00
  1. اجلب أحداث اليوم من Google Calendar.
  2. رتّبها كقائمة: الوقت، العنوان، المكان أو رابط الاجتماع.
  3. أرسل الرسالة عبر بوت تيليجرام الخاص بك.

المخطط

Every day 7:00Schedule TriggerCGet today's eventsGoogle Calendar{ }Format agendaCodeTSend to TelegramTelegram
مشغّل تطبيق كود

الكود

كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.

Format agenda · عقدة Code
// Turns today's calendar events into one Telegram message.
const events = $input.all().map((item) => item.json).filter((e) => e.id);

if (!events.length) {
  return [{ json: { text: "☀️ No meetings today — enjoy the focus time!" } }];
}

const time = (e) =>
  e.start.dateTime
    ? new Date(e.start.dateTime).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" })
    : "All day";

const lines = events.map((e) => {
  const link = e.hangoutLink ? `\n   ${e.hangoutLink}` : "";
  return `• ${time(e)} — ${e.summary}${link}`;
});

return [{ json: { text: `☀️ Today's agenda (${events.length}):\n${lines.join("\n")}` } }];

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.

ملف Workflow JSON
عرض الكود (136 سطر)
{
  "name": "جدول يومك على تيليجرام (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## جدول يومك على تيليجرام\nكل صباح، تصلك مواعيد اليوم في رسالة تيليجرام واحدة مرتبة.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "2473c6c3-ba78-4235-a758-cbdeb43be1cf",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            }
          ]
        }
      },
      "id": "2473c6c3-ba78-4235-a758-cbdeb43be1cf",
      "name": "Every day 7:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "value": "primary",
          "mode": "id"
        },
        "returnAll": true,
        "timeMin": "={{ $today.toISO() }}",
        "timeMax": "={{ $today.plus({ days: 1 }).toISO() }}",
        "options": {
          "singleEvents": true,
          "orderBy": "startTime"
        }
      },
      "id": "2473c6c3-ba78-4235-a758-cbdeb43be1cf",
      "name": "Get today's events",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [
        300,
        0
      ],
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "jsCode": "// Turns today's calendar events into one Telegram message.\nconst events = $input.all().map((item) => item.json).filter((e) => e.id);\n\nif (!events.length) {\n  return [{ json: { text: \"☀️ No meetings today — enjoy the focus time!\" } }];\n}\n\nconst time = (e) =>\n  e.start.dateTime\n    ? new Date(e.start.dateTime).toLocaleTimeString(\"en-GB\", { hour: \"2-digit\", minute: \"2-digit\" })\n    : \"All day\";\n\nconst lines = events.map((e) => {\n  const link = e.hangoutLink ? `\\n   ${e.hangoutLink}` : \"\";\n  return `• ${time(e)} — ${e.summary}${link}`;\n});\n\nreturn [{ json: { text: `☀️ Today's agenda (${events.length}):\\n${lines.join(\"\\n\")}` } }];"
      },
      "id": "2473c6c3-ba78-4235-a758-cbdeb43be1cf",
      "name": "Format agenda",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        600,
        0
      ]
    },
    {
      "parameters": {
        "chatId": "YOUR_CHAT_ID",
        "text": "={{ $json.text }}",
        "additionalFields": {}
      },
      "id": "2473c6c3-ba78-4235-a758-cbdeb43be1cf",
      "name": "Send to Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        900,
        0
      ]
    }
  ],
  "connections": {
    "Every day 7:00": {
      "main": [
        [
          {
            "node": "Get today's events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get today's events": {
      "main": [
        [
          {
            "node": "Format agenda",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format agenda": {
      "main": [
        [
          {
            "node": "Send to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • أنشئ البوت مجانًا عبر @BotFather في تيليجرام.

أتمتات مشابهة