Releases: line/line-bot-sdk-php
2.2.0
Support FileMessage #87
This SDK now supports FileMessage.
Please refer to the following documentation for more information:
2.1.0
group
event and room
event can accept/provide the userId
#82
Ref: https://developers.line.me/news?ny=2017&nm=05
- 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
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
Support beacon device message (beacon.dm)
Ref: https://devdocs.line.me/#webhook-event-object
1.5.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.0 - Provide function to retrieve response header(s) from Response class
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.