Skip to content

Releases: line/line-bot-sdk-php

2.2.0

03 Aug 10:46
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

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

1.5.0

09 Mar 09:33
Compare
Choose a tag to compare

Support PHP 5.4 and 5.5

1.4.0

20 Jan 14:08
Compare
Choose a tag to compare

Support multicast API

#48

Change to be able to set text field to PostbackTemplate

#47

1.3.0

27 Nov 07:14
Compare
Choose a tag to compare

Features

Add method to get message type #42

The new method MessageEvent#getMessageType() returns type of message event (e.g. text, image)

1.2.1

21 Nov 08:54
Compare
Choose a tag to compare

Bug Fixes

Append Content-Length: 0 to request header when body of POST is empty (#38)

Fix #35

1.2.0

17 Nov 06:36
Compare
Choose a tag to compare

Features

Support BaseEvent#getEventSourceId()

This method returns the identifier of the event source that associated with event source type (i.e. returns any: userId, groupId or roomId).

#36

Add method to get beacon event type

#37

1.1.0 - Provide function to retrieve response header(s) from Response class

19 Oct 07:23
Compare
Choose a tag to compare

Add two new methods to Response class

Now you can retrieve response header(s) through Response class.

Related:

Thank you for your suggestion, @samwierema.

Response#getHeader($name)

This method returns a response header string, or null if the response does not have a header of that name.

Response#getHeaders()

This method returns all of the response headers as string array.

Fix handling to specify endpoint base URI

#30