Skip to content

Releases: line/line-bot-sdk-php

3.4.0

23 Oct 10:09

Choose a tag to compare

Change ButtonTemplateBuilder mandatory parameters #174

ButtonTemplateBuilder class accepts that both title and thumbnailImageUrl are optional parameters.

Add RawMessageBulder class #185

This class allows you to specify message array directory. This class doesn't call build() method internally. So you need to pass built message array to constructor of this class. You need to know about detail of the structure of the messages. But you can use new type of message without waiting support its builder class.

3.3.0

21 Aug 08:43

Choose a tag to compare

Support flex message #170

We have released Flex Message, a new message type for the Messaging API. Flex Messages are messages with a customizable layout. You can customize the layout freely by combining multiple elements.

https://developers.line.me/en/news/2018/06/

3.2.0

16 Aug 05:41

Choose a tag to compare

Supported quickReply message #169

This feature was contributed by @vocolboy. Thank you!

When a user receives a message that contains quick reply buttons from a bot, those buttons appear at the bottom of the chat screen. The user can simply tap one of the buttons to reply to the bot. The quick reply feature can be used in a one-on-one chat with a bot, a group, and a room. You can set up to 13 quick reply buttons to a message of any type.

https://developers.line.me/en/docs/messaging-api/using-quick-reply/

Fixed miner bugs

  • Travis CI now runs all tests #171
  • Support GET request with headers (Rel: #147) #172
  • Fix ext-curl and ext-json requirements #172
  • Added undocumented exception on PHPdoc comments #172

3.1.0

19 Jul 04:26

Choose a tag to compare

Support new options for template message image #158

We have released imageAspectRatio, imageSize, and imageBackgroundColor fields for Buttons and Carousel template messages. Using these fields, you can configure the aspect ratio, size, and background color for images used in template messages.

https://developers.line.me/en/news/2017/11/

3.0.0

29 Jun 04:53

Choose a tag to compare

PHP version requirement has changed #130

Added support PHP 7.2. Alternatively we no longer support PHP 5.4.

Supported RichMenu API #138 #151

You can control RichMenu using this library.

https://developers.line.me/en/docs/messaging-api/using-rich-menus/

Cleaned up development environment #127 #128 #155

Cleaned up development environment. Changed composer.json to require library version more relax and revised Makefile and HACKING.md etc.

Removed apigen from require-dev

Because it's only needed for owner of this library.

req_mirror is no longer needed

We used to rely on golang implemented http request mirroring server. But I implemented same feature in pure PHP instead.

2.3.0

20 Sep 11:20

Choose a tag to compare

Supported image carousel message and datetime picker action #101 #102

Image Carousel

Template with multiple images which can be cycled like a carousel.

Datetime Picker

When this action is tapped, a postback event is returned via webhook with the date and time selected by the user from the date and time selection dialog.

https://devdocs.line.me/en/#template-messages

Supported group/room member profile/ids API #99 #100

group/room member profile

Gets the user profile of a member of a group or room that the bot is in. This can be the user ID of a user who has not added the bot as a friend or has blocked the bot.

https://devdocs.line.me/en/#get-group-room-member-profile

group/room member ids

Gets the user IDs of the members of a group or a room that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This feature is only available for LINE@ Approved accounts or official accounts.

https://devdocs.line.me/en/#get-group-room-member-ids

2.2.0

03 Aug 10:46

Choose a tag to compare

Support FileMessage #87

This SDK now supports FileMessage.
Please refer to the following documentation for more information:

2.1.0

31 May 10:21

Choose a tag to compare

group event and room event can accept/provide the userId #82

Ref: https://developers.line.me/news?ny=2017&nm=05

  1. Changes to the Messaging API specifications

Webhooks will include the user ID of users who send messages in a group or a room if the user has agreed to the “Official Accounts Terms of Use”. Note that the user ID will not be included in the webhook if the user is using a version of LINE below 7.5.0.

For more information about the changes, see the updated API reference and JSON examples at source group and source room.

2.0.0

26 May 03:10

Choose a tag to compare

Supports UnknownEvent and UnknownMessage

This SDK supports UnknownEvent and UnknownMessage from this version.
If application receives event that has a type that is not supported by this SDK, it encapsulates the event to UnknownEvent'. UnknownMessage` is also the same.

See also: https://github.com/line/line-bot-sdk-php/wiki/How-to-handle-unknown-type-events-and-messages

Incompatible changes 💀

  • Removed UnknownEventTypeException
  • Removed UnknownMessageTypeException

These exception classes are no longer supported. Please use UnknownEvent and UnknownMessage instead.

1.6.0

27 Apr 05:33

Choose a tag to compare

Support beacon device message (beacon.dm)
Ref: https://devdocs.line.me/#webhook-event-object