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


ansible,bash

My first ansible, automated database transfer

In this article, I use Docker on MacOS to share my experience in using Ansible. You can adjust it to your desired Ansible environment according to this directory structure, or learn Ansible. The situation is like this, I hope that in my test environment, I can see articles that are the closest to the official machine, but I don't want to use the test machine program to directly connect to the database of the official machine. My manual method is to export the db of the official machine, copy it to the test machine and then import it. Although there are not a few steps, it seems to be a bit annoying to do, and manual operation is easy to make mistakes. This reminds me of Ansible. I've heard of it but haven't tried it, so why not give it a try.

docker

About Docker's Logging Driver

Docker has a lot of built-in log mechanisms to help us obtain service information executed in the container. These mechanisms (mechanisms) we usually call logging drivers.

d-laravel,docker

D-Laravel v1.2.1 version change description (recommended update, must avoid stepping on thunder)

D-Laravel v1.2.1 revision instructions use GuzzleHttp\Client; When posting, there is an access denied problem. If you are upgrading from an older version, you may need to adjust the configuration file in etc/default-ssl.conf (if there is one) Please adjust php:9000 to web:9000, you can adjust it by executing ./console secure once. In the docker-compose configuration file, change the PHP-FPM container to network_mode: "service:web"...