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,laravel

It's super easy to build a Lravel development environment with Docker

Are you ready for the Laravel 5.5 system environment? laravel/framework 5.5.x-dev requires php >=7.0 -> your PHP version (5.6.30) does not satisfy that requirement. This article describes how to create a Laravel development environment using Docker. With the simple to explosive D-Laravel simple bash, Don't say that I can't set up a Laravel development environment.

EBS Volume, mount, ubuntu

Create a ready-to-use Amazon EBS volume

This article completely records the complete process of my formatting and mounting the EBS volume. The text has complete steps and reference links to the original text.

MacOS

Restart the sshd service on MacOS

Document how I restart the sshd service on MacOS.