https://github.com/louis70109/line-bot-group-example
https://github.com/louis70109/line-bot-group-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/louis70109/line-bot-group-example
- Owner: louis70109
- License: mit
- Created: 2020-06-22T14:29:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T05:58:01.000Z (over 4 years ago)
- Last Synced: 2025-01-31T22:11:25.448Z (4 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# LINE Bot Group API example
This is a group/room demo bot, if you does not type a trigger word or it is not in group/room,
it just an echo same message. 🤖
# Deployment
[](https://heroku.com/deploy)
# Trigger word
## Group
- 群組資訊
- 我是誰
- 你走吧## Room
- 聊天室資訊
- 我是誰
- 你走吧# Screenshot

---

---

# Developer Side
## LINE account
- Got A LINE Bot API devloper account
Make sure you already registered, if you need use LINE Bot.- Go to LINE Developer Console
- Close auto-reply setting on "Messaging API" Tab.
- Setup your basic account information. Here is some info you will need to know.
- Callback URL: `https://{NGROK_URL}/webhooks/line`
- Verify your webhook.
- Enable bot join group button.
- You will get following info, need fill back to `.env` file.
- Channel Secret
- Channel Access Token (You need to issue one here)## Normal testing
1. first terminal window:
```
pip install -r requirements.txt --user
python api.py
```2. Created a provisional Https:
```
ngrok http 5000
```or maybe you have npm environment:
```
npx ngrok http 5000
```
3. Copied your ngrok url to LINE developer page and `Enabled` join group button:

4. Joined bot in your `Group`/`Room`!
# License
MIT License