텔레그램 봇 통합
이 가이드에서는 Telegram Bot을 chat.smsbat.com 패널에 연결하는 방법을 설명합니다.
1. 패널에 봇 추가하기
대시보드에서 내 계정 -> 텔레그램 봇으로 이동합니다.
- 봇 추가를 클릭합니다.
- 텔레그램 봇 데이터(이름, 토큰)를 입력하고 시스템에 저장합니다.
- 저장 후 봇 설정으로 이동하여 ID를 검색하여 콜백 URL을 구성합니다.
2. Chat.SMSBAT와의 통합 옵션
옵션 2.1: Telegram에서 Omni Chat으로 콜백 프록시 처리
이 흐름에서 서버는 Telegram 웹후크를 직접 수신한 다음 페이로드를 SMSBAT에 전달합니다.
sequenceDiagram
participant Client as Client Server
participant Tg as Telegram
participant Proxy as SMSBAT Proxy
participant Chat as Omni Chat
actor Operator
Client->>Tg: Send data to bot
Tg->>Client: Callback from Telegram
Client->>Proxy: Forward Telegram callback to SMSBAT
Proxy->>Chat: Reaction to trigger message
Operator->>Chat: Review and respond
Chat->>Tg: Interaction with Telegram
요구사항: - 클라이언트 시스템이 수신 콜백을 'chat.smsbat.com' 웹훅으로 직접 프록시하는지 확인하세요. - '채팅 시작' 버튼의 정확한 텍스트/동작을 제공하세요. - '채팅 종료' 버튼의 정확한 텍스트/동작을 제공하세요.
옵션 2.2: 프록시된 로직을 다시 클라이언트로
이 흐름에서는 SMSBAT가 Telegram의 직접 웹훅으로 설정됩니다. SMSBAT는 이벤트를 수신한 다음 콜백을 시스템으로 프록시 처리합니다.
sequenceDiagram
participant Client as Client Server
participant Tg as Telegram
participant Proxy as SMSBAT Proxy
participant Chat as Omni Chat
actor Operator
Client->>Tg: Send data to bot
Tg->>Proxy: Callback on events from Telegram
Proxy->>Client: Forward Telegram callback to Client
Proxy->>Chat: Reaction to trigger message
Operator->>Chat: Review and respond
Chat->>Tg: Operator interaction with Telegram
요구사항:
- 봇 추가 후 생성된 콜백 URL을 입력해주세요. URL은 다음과 같습니다.
https://restapi.smsbat.com/api/tg_callback/{ID}
- '채팅 시작' 버튼의 정확한 텍스트/동작을 제공하세요.
- '채팅 종료' 버튼의 정확한 텍스트/동작을 제공하세요.