JSON ข้อความ · Message objectflexlay-edu-homework-reminder.json
{
"type": "flex",
"altText": "เตือนส่งการบ้าน 2 ชิ้น ครบกำหนดพรุ่งนี้ 16 ธ.ค. 2569",
"contents": {
"type": "bubble",
"size": "kilo",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "lg",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "box",
"layout": "vertical",
"flex": 0,
"paddingEnd": "8px",
"paddingTop": "2px",
"cornerRadius": "xl",
"paddingStart": "8px",
"paddingBottom": "2px",
"backgroundColor": "#DC2626",
"contents": [
{
"type": "text",
"size": "xxs",
"text": "ครบกำหนดพรุ่งนี้",
"align": "center",
"color": "#FFFFFF",
"weight": "bold"
}
]
}
]
},
{
"type": "text",
"size": "lg",
"text": "การบ้านที่ต้องส่ง",
"color": "#111827",
"margin": "md",
"weight": "bold"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"paddingAll": "md",
"cornerRadius": "md",
"backgroundColor": "#F8FAFC",
"contents": [
{
"type": "box",
"layout": "baseline",
"contents": [
{
"type": "text",
"size": "sm",
"text": "📘",
"flex": 0
},
{
"type": "text",
"size": "sm",
"text": "ฟิสิกส์ · แบบฝึกหัดบทที่ 4 ข้อ 1–20",
"wrap": true,
"margin": "sm",
"contents": [
{
"type": "span",
"text": "ฟิสิกส์ · ",
"color": "#111827",
"weight": "bold"
},
{
"type": "span",
"text": "แบบฝึกหัดบทที่ 4 ข้อ 1–20",
"color": "#4B5563"
}
]
}
]
},
{
"type": "text",
"size": "xs",
"text": "ส่งภายใน อ. 16 ธ.ค. 23:59 น.",
"color": "#DC2626",
"margin": "xs"
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"paddingAll": "md",
"cornerRadius": "md",
"backgroundColor": "#F8FAFC",
"contents": [
{
"type": "box",
"layout": "baseline",
"contents": [
{
"type": "text",
"size": "sm",
"text": "📘",
"flex": 0
},
{
"type": "text",
"size": "sm",
"text": "ภาษาอังกฤษ · เรียงความ My Dream Job (150 คำ)",
"wrap": true,
"margin": "sm",
"contents": [
{
"type": "span",
"text": "ภาษาอังกฤษ · ",
"color": "#111827",
"weight": "bold"
},
{
"type": "span",
"text": "เรียงความ My Dream Job (150 คำ)",
"color": "#4B5563"
}
]
}
]
},
{
"type": "text",
"size": "xs",
"text": "ส่งภายใน อ. 16 ธ.ค. 23:59 น.",
"color": "#DC2626",
"margin": "xs"
}
]
}
]
},
"footer": {
"type": "box",
"layout": "horizontal",
"spacing": "sm",
"paddingAll": "lg",
"paddingTop": "none",
"contents": [
{
"type": "button",
"flex": 1,
"color": "#2563EB",
"style": "primary",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/lms/assignments",
"label": "ส่งงาน"
}
},
{
"type": "button",
"flex": 1,
"style": "secondary",
"height": "sm",
"action": {
"type": "postback",
"data": "action=hw_done&ids=PHY-4,ENG-ESSAY-3",
"label": "ส่งแล้ว",
"displayText": "ส่งการบ้านแล้ว"
}
}
]
}
}
}