@@ -30,7 +30,10 @@ def get_action(action):
3030 'postback' : PostbackAction ,
3131 'message' : MessageAction ,
3232 'uri' : URIAction ,
33- 'datetimepicker' : DatetimePickerAction
33+ 'datetimepicker' : DatetimePickerAction ,
34+ 'camera' : CameraAction ,
35+ 'cameraRoll' : CameraRollAction ,
36+ 'location' : LocationAction ,
3437 }
3538 )
3639 return action_obj
@@ -176,3 +179,69 @@ def __init__(self, label=None, data=None, mode=None,
176179 self .initial = initial
177180 self .max = max
178181 self .min = min
182+
183+
184+ class CameraAction (Action ):
185+ """CameraAction.
186+
187+ https://developers.line.me/en/reference/messaging-api/#camera-action
188+
189+ This action can be configured only with quick reply buttons.
190+ When a button associated with this action is tapped,
191+ the camera screen in the LINE app is opened.
192+ """
193+
194+ def __init__ (self , label = None , ** kwargs ):
195+ """__init__ method.
196+
197+ :param str label: Label for the action
198+ :param kwargs:
199+ """
200+ super (CameraAction , self ).__init__ (** kwargs )
201+
202+ self .type = 'camera'
203+ self .label = label
204+
205+
206+ class CameraRollAction (Action ):
207+ """CameraRollAction.
208+
209+ https://developers.line.me/en/reference/messaging-api/#camera-roll-action
210+
211+ This action can be configured only with quick reply buttons.
212+ When a button associated with this action is tapped,
213+ the camera roll screen in the LINE app is opened.
214+ """
215+
216+ def __init__ (self , label = None , ** kwargs ):
217+ """__init__ method.
218+
219+ :param str label: Label for the action
220+ :param kwargs:
221+ """
222+ super (CameraRollAction , self ).__init__ (** kwargs )
223+
224+ self .type = 'cameraRoll'
225+ self .label = label
226+
227+
228+ class LocationAction (Action ):
229+ """LocationRollAction.
230+
231+ https://developers.line.me/en/reference/messaging-api/#location-action
232+
233+ This action can be configured only with quick reply buttons.
234+ When a button associated with this action is tapped,
235+ the location screen in the LINE app is opened.
236+ """
237+
238+ def __init__ (self , label = None , ** kwargs ):
239+ """__init__ method.
240+
241+ :param str label: Label for the action
242+ :param kwargs:
243+ """
244+ super (LocationAction , self ).__init__ (** kwargs )
245+
246+ self .type = 'location'
247+ self .label = label
0 commit comments