한국인공지능아카데미 & SBA 아카데미 온라인 챗봇 교육자료
Telegram Chatbot Tutorial with Python Flask
시작하기
교육영상 : 동영상 URL 을 참고하시면 됩니다.
Google Firebase Document : https://firebase.google.com/docs/reference/admin/python
파이썬 패키지 명세
설치
Heroku CLI(Command Line Interface) 설치 Install Heroku CLI
만약 Git이 설치 되어있지 않다면 Install Git
Ngrok 을 통한 간단한 테스트
Ngrok 실행화면 Ngrok 다운
ngrok http 5000 --region ap
Ngrok 을 이용한 테스트
tuto01 에 있는 telegram.py 를 수정
API_KEY = Telegram Bot ACCESS Key
WEBHOOK URL = Ngrok forwarding HTTPS URL
실행할 파일 tuto02~05에 있는 app.py 실행
python app.py
app.py 실행 로그
Running on http://127.0.0.1:5000/
배포
Heroku CLI에서 사용 [ 내용은 해당 내용을 ]
>> heroku login
>> cd tuto00(Heroku)
>> git init
>> git add .
>> heroku git:remote -a [Heroku 저장소 이름]
>> git add .
>> git commit -m "[코맨트]"
>> heroku buildpacks:set heroku/python
>> git push heroku master
>> heroku ps:scale web=1
Built With
- Telegram - Message Platform
- Flask - The web framework used
- Heroku - Deploy Management
- ngrok - Deploy Test
Authors
- LeeJunho - Initial work - Panic
License
This project is licensed under the MIT License - see the LICENSE.md file for details