@@ -356,8 +356,8 @@ def send(self, from_user_id, to_group_id, object_name, content, push_content=Non
356
356
'{% if (is_include_sender != 0) %}&isIncludeSender={{ is_include_sender }}{% endif %}' \
357
357
'{% if (is_mentioned != 0) %}&isMentioned={{ is_mentioned }}{% endif %}' \
358
358
'{% if (content_available != 0) %}&contentAvailable={{ content_available }}{% endif %}' \
359
- '{% if (expansion != 0 ) %}&expansion={{ expansion }}{% endif %}' \
360
- '{% if (disable_push != 0 ) %}&disablePush={{ disable_push }}{% endif %}' \
359
+ '{% if (expansion != False ) %}&expansion={{ expansion }}{% endif %}' \
360
+ '{% if (disable_push != False ) %}&disablePush={{ disable_push }}{% endif %}' \
361
361
'{% if push_ext is not none %}&pushExt={{ push_ext }}{% endif %}'
362
362
try :
363
363
self ._check_param (from_user_id , str , '1~64' )
@@ -372,6 +372,7 @@ def send(self, from_user_id, to_group_id, object_name, content, push_content=Non
372
372
self ._check_param (content_available , int , '0~1' )
373
373
self ._check_param (expansion , bool )
374
374
self ._check_param (disable_push , bool )
375
+ self ._check_param (push_ext , str )
375
376
return self ._http_post (url , self ._render (param_dict , format_str ))
376
377
except ParamException as e :
377
378
return json .loads (str (e ))
@@ -675,6 +676,7 @@ def send(self, from_user_id, to_user_ids, object_name, content, push_content=Non
675
676
self ._check_param (is_persisted , int , '0~1' )
676
677
self ._check_param (content_available , int , '0~1' )
677
678
self ._check_param (disable_push , bool )
679
+ self ._check_param (push_ext , str )
678
680
return self ._http_post (url , self ._render (param_dict , format_str ))
679
681
except ParamException as e :
680
682
return json .loads (str (e ))
0 commit comments