Skip to content

เพิ่ม Telegram Channel

สิ่งที่ต้องเตรียมก่อนเริ่ม

RequirementPurpose
Telegram accountใช้สร้าง bot และ storage channel
@BotFatherใช้สร้าง Telegram bot
Telegram channelปลายทางสุดท้ายสำหรับเก็บ files
@userinfobotใช้ดู Chat ID ของ channel

เพิ่มได้จากที่ไหน

  1. เปิด System Settings
  2. ไปที่ Upload Settings
  3. คลิก Add Channel ที่มุมขวาบน
  4. เลือก Telegram

Field Reference

Fieldใช้ทำอะไรRequired
Channel nameชื่อที่จำง่ายสำหรับ channel นี้ เช่น "Telegram Primary"Required
Activeเปิดหรือปิด channel นี้Recommended
Bot TokenToken ของ Telegram botRequired
Session ID (Chat ID)ID ของ Telegram channelRequired
Relay Proxy URL (optional)ใช้เฉพาะเมื่อเข้าถึง Telegram ไม่เสถียร ใส่ proxy URL แบบเต็มรวม https://Optional
RemarkหมายเหตุสำหรับดูแลในภายหลังOptional

ขั้นตอนตั้งค่า

1. สร้าง Telegram Bot

  1. เปิด Telegram แล้วค้นหา @BotFather
  2. เปิด chat แล้วคลิก Start
  3. ส่ง /newbot
  4. ทำตาม prompt เพื่อใส่ bot display name
  5. ทำตาม prompt เพื่อใส่ bot username โดยปกติ username ต้องลงท้ายด้วย bot
  6. เมื่อสร้าง bot แล้ว @BotFather จะส่ง bot token กลับมา

Token นี้คือค่า Bot Token ที่ต้องใส่ใน ImgBed

Save the bot token

2. สร้าง Channel

  1. ใน Telegram ให้คลิก New Channel
  2. ใส่ channel name
  3. สร้าง channel ให้เสร็จ

ใช้ได้ทั้ง public และ private channel

Create a channel

3. เพิ่ม Bot เข้า Channel

  1. เปิด channel ที่เพิ่งสร้าง
  2. เปิด channel settings
  3. เพิ่ม member หรือ administrator
  4. ค้นหา bot username ที่สร้างไว้
  5. เพิ่ม bot เข้า channel

เพื่อให้อัปโหลดได้เสถียรที่สุด แนะนำให้ให้สิทธิ์ bot เป็น administrator

Invite the bot to the channel

4. รับ Channel ID ด้วย User Info - Get ID - IDbot

  1. ค้นหา @userinfobot ใน Telegram ชื่อที่แสดงมักเป็น User Info - Get ID - IDbot
  2. เปิด chat แล้วคลิก Start
  3. เลือก Channel จากตัวเลือกที่ bot ให้มา
  4. ใน message picker ให้เลือก target channel แล้วส่งไปที่ @userinfobot
  5. เมื่อ @userinfobot ส่งผลลัพธ์กลับมา ให้ copy เลขที่แสดงเป็น Id: -100...

เลขที่ขึ้นต้นด้วย -100 คือ Session ID (Chat ID) ที่ ImgBed ต้องใช้

Get the channel ID

5. ใส่ Telegram Channel ใน ImgBed

กลับไปที่ channel configuration dialog แล้วกรอกดังนี้:

UI FieldValue
Channel Identifierชื่อ channel ที่ตั้งเอง เช่น TelegramPrimary
ActiveRecommended
Bot TokenBot token จาก @BotFather
Session ID (Chat ID)เลข -100... ที่ได้จาก @userinfobot
Relay Proxy URL (optional)ใส่เฉพาะเมื่อจำเป็น เช่น https://your-tg-proxy.example.com
Remarkหมายเหตุเพิ่มเติม

กรอกครบแล้วคลิก Save

Edit the configuration

วิธีตรวจสอบ

Checkวิธีตรวจสอบ
เห็น channel cardหลัง save หน้า Upload Settings ควรแสดง Telegram channel card
Channel เปิดใช้งานได้Active switch ควรอยู่ในสถานะ on
Configuration ถูกบันทึกDetail view ควรแสดงว่า Bot Token และ Chat ID ถูกบันทึกแล้ว
Upload ใช้งานได้อัปโหลด test image แล้วตรวจสอบว่าไปปรากฏใน Telegram channel เป้าหมาย

Quick Checklist

text
สร้าง bot ด้วย @BotFather
-> บันทึก Bot Token
-> สร้าง Telegram channel
-> เพิ่ม bot เข้า channel และให้สิทธิ์ administrator
-> ค้นหา @userinfobot แล้วเลือก Channel
-> Forward message ใดก็ได้จาก channel ไปที่ @userinfobot
-> Copy ค่า Id: -100... ที่ได้กลับมา
-> ใส่ Bot Token และ Chat ID ใน ImgBed
-> Save แล้วอัปโหลด test image

References

  1. Telegram bots: https://core.telegram.org/bots
  2. Telegram Bot API: https://core.telegram.org/bots/api

Released as user documentation for CloudFlare ImgBed.