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

D-Laravel on .env and docker-compsoe small classroom

This article introduces why the docker-compose ps official command cannot list all the services in use when we use D-Laravel's .env to load multiple yml files. But the ./console ps on D-Laravel can indeed display normally, so how can the official docker-compose command be used to have the same effect?

linux

How to install the monitor tool htop on CentOS

Htop is a free (GPL) ncurses-based program monitor tool for Linux. It is similar to top, but allows you to scroll vertically and horizontally, so you can see the full command line running on the system, And you can view them as program trees, select multiple programs and operate them.

laravel,laravel livewire

Laravel livewire file upload demo

Livewire is a full-stack framework for the Laravel framework. It was the first time I wrote code, and he was probably the one who was able to write and marvel at the magic. My colleague also marveled while writing after being pushed by me. When I first learned Vue, I was not so surprised by him.