[{"data":1,"prerenderedAt":307},["ShallowReactive",2],{"blog-entry-numbers":3,"notes-2025-05-10-n8n-with-telegram-notify":59,"references-notes-2025-05-10-n8n-with-telegram-notify":277,"related-blog-notes-2025-05-10-n8n-with-telegram-notify":287},[4,7,10,13,16,19,22,25,28,30,33,36,39,42,45,48,51,53,56],{"path":5,"date":6},"\u002Fblogs\u002F2024-01-14-setup-ubuntu-server","2024-01-14",{"path":8,"date":9},"\u002Fblogs\u002F2025-04-24-n8n-part-1","2025-04-24",{"path":11,"date":12},"\u002Fblogs\u002F2025-04-28-n8n-part-2","2025-04-28",{"path":14,"date":15},"\u002Fblogs\u002F2025-05-12-next-dns","2025-05-12",{"path":17,"date":18},"\u002Fblogs\u002F2025-05-18-from-old-notebook-to-home-lab-server","2025-05-18",{"path":20,"date":21},"\u002Fblogs\u002F2025-08-18-ollama-desktop-ui","2025-08-18",{"path":23,"date":24},"\u002Fblogs\u002F2025-08-26-xponology-on-old-pc","2025-08-26",{"path":26,"date":27},"\u002Fblogs\u002F2026-08-03-docker-dind-vs-dood","2026-08-03",{"path":29,"date":27},"\u002Fblogs\u002F2026-08-03-grafana-alloy-loki",{"path":31,"date":32},"\u002Fblogs\u002F2026-08-07-node-exporter-mtls-basic-auth","2026-08-07",{"path":34,"date":35},"\u002Fblogs\u002F2026-09-16-headroom","2026-09-16",{"path":37,"date":38},"\u002Fblogs\u002F2026-10-17-humanizer-skills","2026-10-17",{"path":40,"date":41},"\u002Fblogs\u002F2026-10-27-claude-code-server-management","2026-10-27",{"path":43,"date":44},"\u002Fblogs\u002F2026-11-02-agent-skills-security-check","2026-11-02",{"path":46,"date":47},"\u002Fblogs\u002F2026-11-04-ai-native-sdlc","2026-11-04",{"path":49,"date":50},"\u002Fblogs\u002F2026-11-06-seo-aeo-geo-ai-search","2026-11-06",{"path":52,"date":50},"\u002Fblogs\u002F2026-11-06-sshole",{"path":54,"date":55},"\u002Fblogs\u002F2026-11-09-ai-search-visibility","2026-11-09",{"path":57,"date":58},"\u002Fblogs\u002F2026-11-11-persona-review-subagents","2026-11-11",{"id":60,"title":61,"body":62,"date":246,"description":247,"draft":248,"extension":249,"faq":250,"meta":251,"navigation":252,"next":250,"ogTitle":253,"path":254,"pin":248,"prev":250,"recommends":255,"seo":258,"sitemap":259,"stem":273,"tags":274,"updated":250,"__hash__":276},"notes\u002Fnotes\u002F2025-05-10-n8n-with-telegram-notify.md","ส่งการแจ้งเตือนไปยัง Telegram Bot ด้วย N8N",{"type":63,"value":64,"toc":240},"minimark",[65,73,78,86,89,93,96,101,109,114,132,137,144,149,160,165,172,182,187,194,199,202,207,212,218,221,226,229],[66,67,68],"p",{},[69,70],"img",{"alt":71,"src":72},"","\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-d022bdb9-7169-4052-baaf-c1da8325bce2.jpg",[74,75,77],"h2",{"id":76},"telegram-bot-คืออะไร","Telegram Bot คืออะไร",[66,79,80,81,85],{},"หลังจากที่ Line Notify ประกาศยุติการให้บริการไป Telegram ก็ขึ้นมาเป็นอันดับต้น ๆ ของการทำ Notification เนื่องด้วยเหตุผลหลัก ๆ คือ ",[82,83,84],"strong",{},"FREE"," และใช้งานส่งได้ไม่จำกัด แต่ผมเองจริง ๆ ย้ายมาใช้ Telegram ได้หลายปีแล้วครับ ช่วงแรก ๆ ก็ใช้ Line Notify แล้วก็ไปใช้ Discord แทน สุดท้ายมาจบที่ Telegram เพราะว่าต้องการจะใช้ Line เฉพาะคุยเรื่องส่วนตัว (ไม่อยากใช้ Line ในการทำงาน) ส่วน Discord ก็อยากเอาไว้ใช้ในการพูดคุยกับเพื่อน ๆ มากกว่า",[66,87,88],{},"ข้อดีของ Telegram Bot หลัก ๆ ในส่วนของการพัฒนาถือว่าง่ายมากครับมีทั้งแบบ Polling และ Webhook ให้ใช้งาน หลัง ๆ มาเลยใช้แต่ Telegram เป็นหลักเลยครับ",[74,90,92],{"id":91},"วิธีการสร้าง-telegram-bot","วิธีการสร้าง Telegram Bot",[66,94,95],{},"ทำการ Add telegram ที่ชื่อว่า \"BotFather\" สามารถสแกน QR Code นี้ได้เลยครับผม โดยที่ BotFater จะเป็น Chat Bot ที่เอาไว้ใช้ในการสร้าง\u002Fจัดการ Bot ของเราเองนะครับ",[66,97,98],{},[69,99],{"alt":71,"src":100},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-91fa3609-6307-47b8-9298-70fa23a34007.jpg",[66,102,103,104,108],{},"จากนั้นใช้ command ",[105,106,107],"code",{},"\u002Fnewbot"," เพื่อเป็นการเริ่มขั้นตอนในการสร้าง Bot ตัวใหม่ขึ้นมา แล้วจะมีการถามชื่อของ Bot ที่เราต้องการจะสร้างขึ้นมานะครับ",[66,110,111],{},[69,112],{"alt":71,"src":113},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-c191577e-5e9c-40a9-8cbc-c43ee57882b1.jpg",[66,115,116,117,120,121,124,125,128,129],{},"เมื่อส่งชื่อไปแล้ว จะมีการถาม ",[105,118,119],{},"username"," ที่ต้องการใช้งาน ซึ่งจำเป็นต้องมีคำว่า ",[105,122,123],{},"bot"," ต่อท้าย เช่น ",[105,126,127],{},"demo_n8n_bot"," หรือ ",[105,130,131],{},"DemoN8NBot",[66,133,134],{},[69,135],{"alt":71,"src":136},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-88651bc7-c8c2-4dcf-8fd0-401709b44bce.jpg",[66,138,139,140,143],{},"จากนั้นจะได้รับ Token สำหรับจัดการ Bot มานะครับ ซึ่งตรงนี้ต้องรักษาเป็นความลับอย่างดี เพราะถ้าหากมีคนได้ Token นี้ไปจะทำให้สามารถเข้าถึงข้อมูลของ Bot ได้ครับ Copy เอา Token เก็บไว้ แล้วกดตรง ",[105,141,142],{},"t.me\u002F\u003Cusername>"," เพื่อไปยัง Chat กับ Bot ได้เลย",[66,145,146],{},[69,147],{"alt":71,"src":148},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-da1134ab-a6b2-4644-bd8a-11ef539abf44.jpg",[66,150,151,152,155,156,159],{},"จากนั้นเปิด browser แล้วไปที่ ",[105,153,154],{},"https:\u002F\u002Fapi.telegram.org\u002Fbot\u003CTOKEN>\u002FgetUpdates"," โดยให้แทนที่ ",[105,157,158],{},"\u003CTOKEN>"," ด้วย token ที่ copy เอาไว้ได้เลยครับ",[66,161,162],{},[69,163],{"alt":71,"src":164},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-7f8a4bc4-8437-411f-8222-baa8ee3e25fe.jpg",[66,166,167,168,171],{},"จากนั้นให้ลองส่ง message อะไรก็ได้ไปยัง telegram bot ของเรา เพื่อค้นหา ",[105,169,170],{},"chat id"," เพื่อนำไปใช้งานใน N8N",[66,173,174,175,177,178,181],{},"หลังจากพิมพ์เสร็จแล้วเมื่อ refresh หน้าเว็บดูจะพบกับข้อมูลนะครับ ถ้าขึ้นแบบนี้แสดงว่าถูกต้อง แต่ถ้าไม่ขึ้นอาจจะลองเชค URL ดูว่าใส่ token ลงไปถูกรึเปล่า โดย ",[105,176,170],{}," จะอยู่ที่ ",[105,179,180],{},"chat: {id}"," ตามที่วงเอาไว้ สามารถ copy เก็บไว้ได้เลยครับ",[66,183,184],{},[69,185],{"alt":71,"src":186},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-a198f69c-6c16-436f-a836-666e14a49c13.jpg",[66,188,189,190,193],{},"เข้าไปที่ N8N และเลือก Node ",[105,191,192],{},"Send a text message"," ของ telegram",[66,195,196],{},[69,197],{"alt":71,"src":198},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-80f7301f-dd22-48e9-a4b9-b11166c4e11d.jpg",[66,200,201],{},"กดสร้าง Credential ใหม่ และนำ Token จาก Bot Father มาใส่",[66,203,204],{},[69,205],{"alt":71,"src":206},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-579dd0eb-09a0-455f-94d4-2d401f8635e2.jpg",[66,208,209],{},[69,210],{"alt":71,"src":211},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-205b9bf5-77c4-450f-be07-9bf7c3537e87.jpg",[66,213,214,215],{},"จากนั้นกรอก Chat ID ที่ copy เก็บเอาไว้และกด \"Test Step\" ได้เลยครับ\n",[69,216],{"alt":71,"src":217},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-b3fd3007-4360-4e16-afa7-8bc0d51c48e8.jpg",[66,219,220],{},"เพียงเท่านี้ก็จะสามารถส่งการแจ้งเตือนไปยัง Telegram ของเราด้วย Telegram Bot ได้แล้ว",[66,222,223],{},[69,224],{"alt":71,"src":225},"\u002Fimages\u002F2025-05-10-n8n-with-telegram-notify\u002Fimages-c7148489-9d38-4647-a3bf-e7f696f4ddcd.jpg",[74,227,228],{"id":228},"สรุป",[66,230,231,232,235,236,239],{},"การส่งแจ้งเตือนไปยัง Telegram Bot ต้องการข้อมูล 2 อย่างคือ ",[105,233,234],{},"Telegram Token"," และ ",[105,237,238],{},"Chat ID"," ซึ่งเป็น Chat ของผู้ใช้งานที่ต้องการส่งข้อความไป โดยวิธีนี้ไม่จำเป็นต้องตั้งค่า Webhook ของ Telegram นะครับ ง่าย ๆ และใช้งานได้จริง ย้ายมาใช้ Telegram กันเยอะ ๆ นะครับ ของดีจริง",{"title":71,"searchDepth":241,"depth":241,"links":242},2,[243,244,245],{"id":76,"depth":241,"text":77},{"id":91,"depth":241,"text":92},{"id":228,"depth":241,"text":228},"2025-05-10","แนะนำวิธีการเชื่อมต่อ Telegram Bot และ N8N เพื่อส่งการแจ้งเตือนไปยัง Telegram สำหรับมือใหม่",false,"md",null,{},true,"Telegram Bot With N8N","\u002Fnotes\u002F2025-05-10-n8n-with-telegram-notify",[256,257],"2025-04-24-n8n-part-1.md","2025-04-28-n8n-part-2.md",{"title":61,"description":247},{"loc":254,"images":260,"lastmod":246},[261,262,263,264,265,266,267,268,269,270,271,272],{"loc":72},{"loc":100},{"loc":113},{"loc":136},{"loc":148},{"loc":164},{"loc":186},{"loc":198},{"loc":206},{"loc":211},{"loc":217},{"loc":225},"notes\u002F2025-05-10-n8n-with-telegram-notify",[275],"Development","TTijOft2UkkyL6hp1I7pCeBB73dd-kZ_wjLoFc_uw64",[278,283],{"id":279,"path":8,"title":280,"date":9,"tags":281},"content\u002Fblogs\u002F2025-04-24-n8n-part-1.md","N8N วิธีการ Setup | Part 1",[282],"AI",{"id":284,"path":11,"title":285,"date":12,"tags":286},"content\u002Fblogs\u002F2025-04-28-n8n-part-2.md","N8N วิธีการการใช้งานเบื้องต้น | Part 2",[282],[288,295,301],{"id":289,"path":290,"title":291,"date":292,"tags":293},"notes\u002Fnotes\u002F2026-03-30-how-to-use-uv.md","\u002Fnotes\u002F2026-03-30-how-to-use-uv","เริ่มต้นใช้งาน uv ตัวจัดการ Python แห่งยุค 2026","2026-03-30",[275,294],"Python",{"id":296,"path":297,"title":298,"date":299,"tags":300},"notes\u002Fnotes\u002F2026-01-17-zshhistory.md","\u002Fnotes\u002F2026-01-17-zshhistory","วิธีแก้ไข zsh_history เสียหาย","2026-01-17",[275],{"id":302,"path":303,"title":304,"date":305,"tags":306},"notes\u002Fnotes\u002F2025-12-28-zshrc-config-folder.md","\u002Fnotes\u002F2025-12-28-zshrc-config-folder","ย้าย .zshrc ไปยัง .config folder","2025-12-28",[275],1795352420577]