-
Notifications
You must be signed in to change notification settings - Fork 4
Telegram Bot Setting
NoneGom edited this page Mar 31, 2025
·
5 revisions
- Telegram Bot 설정을 위해서는 Secret 설정이 필요합니다.
- GitHub Repository로 이동
- Settings 탭 클릭
- 왼쪽 사이드바에서 "Secrets and variables" → "Actions" 선택
- "New repository secret" 버튼 클릭
- 아래 값을 입력
Name: TELEGRAM_BOT_TOKEN
Secret: your_telegram_bot_token (BotFather에게 받은 토큰)
- Save 버튼 클릭
- 다시 "New repository secret" 버튼을 클릭
Name: TELEGRAM_CHAT_ID
Secret: your_chat_id (Telegram getUpdates API로 가져온 값)
- Save 버튼 클릭
- GitHub Actions에서 정의한 환경 변수 사용 가능
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
Secrets는 보안상 조회할 수 없음. 수정하려면 기존 값을 지우고 다시 등록해야 함.
- Settings > Secrets and variables > Actions에서 수정 가능.
- 단톡방 공유