@authenticated_json_post_view
@has_request_variables
def json_tutorial_send_message(request, user_profile, type=REQ(validator=check_string), recipient=REQ(validator=check_string), topic=REQ(validator=check_string), content=REQ(validator=check_string)):
 sender_name = 'welcome-bot@zulip.com'
 if (type == 'stream'):
  internal_send_message(user_profile.realm, sender_name, 'stream', recipient, topic, content)
  return json_success()
 return json_error(_('Bad data passed in to tutorial_send_message'))

@ authenticated_json_post_view @ has_request_variables def json_tutorial_send_message ( request , user_profile , type = REQ ( validator = check_string ) , recipient = REQ ( validator = check_string ) , topic = REQ ( validator = check_string ) , content = REQ ( validator = check_string ) ) : sender_name = 'welcome-bot@zulip.com' if ( type == 'stream' ) : internal_send_message ( user_profile . realm , sender_name , 'stream' , recipient , topic , content ) return json_success ( ) return json_error ( _ ( 'Bad data passed in to tutorial_send_message' ) )
this function .