Overview
UseLineChannel to send LINE messages through Laravel Notifications.
LINE Notify has been discontinued. Notifications now use the Messaging API, which has monthly message limits depending on your pricing plan. See Messaging API pricing for details.
Notification class
ReturnLineChannel::class from via() and define the message in toLine().
Sending notifications
On-demand notifications
To send a notification without a user model, useNotification::route(). The routing value is a userId or groupId.
User model notifications
DefinerouteNotificationForLine() on the User model to route per-user.
A
userId or groupId can be obtained from Webhook events such as FollowEvent or JoinEvent.Message types
Text
Up to 5 messages can be sent at once.Custom sender name and icon
CallwithSender() before any message-adding method.
create():
Sticker
Only stickers listed on the sticker list can be used.Image
Specify a public URL.Video
Specify a public URL.Other message types
Usemessage() to add any message type. Set the type with setType().
For the latest updates, see the GitHub repository.