by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

There is an official EchoBot Sample with a Slim framework. After downloading, you can use composer to try it directly.
After looking at the Slim code, it is not difficult to transfer to Laravel.
It took less than half a day to convert him into a Laravel Project.
Then through Excelify on my GitHub, I converted about 160,000 Excel dictionary file data into SQL Insert syntax,
into the database.

What are the restrictions and precautions for Line Bot ? This article is the result of my own test.

Where to apply for Line Bot:

Limitations as far as I know:

1. Line Bot's solutions are divided into two types: developer testing and free version
After being reminded by netizens in the chat room of CCC , if you want to test the push function,
Please be sure to choose the Developer Trial (developer test) plan. I couldn't push the broadcast with the free one at the beginning.
Also, if there is already a bot in a Line group, we can no longer invite our own bot to join the group.

Here I list the differences between Developer Trial and Free as follows:
Developer Trial plan: There can be up to 50 friends, which means that the number of friends that can be added to the robot is 50, and push broadcasts can be sent.
Free plan: There is no push function, but there is no limit to the number of Bot friends, and you can upgrade to other plans.

Here I list the original text for your reference:
line plan

2. There can only be one robot in a group
If a robot already exists in a group, it cannot invite another one to join.


3. If you choose the Free plan, you cannot use Message Push, and you should choose Developer Trial if you want the Push function.
push api
Here Message push means that the robot actively sends a message to the user.
The Free plan can be changed to a plan with Message Push, which requires a payment of more than 3,000 yuan per month.

If you choose the Developer Trial developer test solution for development testing, you can use the PUSH_MESSAGE function.
I have a simple test, and the pushMessage method in EchoBot is useful.
https://github.com/DevinY/LineEchoBot/blob/master/routes/api.php

I have placed the basic structure of the Laravel framework Echo Bot on my personal Github,
Those who are interested are welcome to download and use by themselves:
https://github.com/DevinY/LineEchoBot

epilogue

If you test the use of Developer Trial in a small group, you can push the required information to the Line group, which is quite convenient.
For example, when someone leaves a message on my website, I want to be notified instantly by the Line bot.


Add as friend
htop

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker,dlaravel

D-Laravel 1.5.5 Change Notes

D-Laravel's fpm image was rebuilt using the official dockerfile of docker php before php 7.2.1. And so I can specify that the default owner of fpm is dlaravel, --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) --with-fpm-group=GRP Set the group for php-fpm to run as.

python

Python fastapi quick reference notes

Simply record and execute the installation steps of fastapi

git

Remove the git remote or local tag

How to delete the Tag on the remote or local end of git.