




import requests







def 				lowerCAmelCase_	(     snake_case_,snake_case_     ):
      _A							:     List[str]			=						{"""Content-Type""": """application/json"""}
      _A							:     str			=						requests.post(snake_case_,json={"""text""": message_body},headers=snake_case_     )
      if response.status_code != 200:
            _A							:     Union[str, Any]			=						(
                """Request to slack returned an error """
                f'''{response.status_code}, the response is:\n{response.text}'''
            )
            raise ValueError(snake_case_     )


if __name__ == "__main__":
  # Set the slack url to the one provided by Slack when you create the webhook at
  # https://my.slack.com/services/new/incoming-webhook/
  send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")







def 				lowerCAmelCase_	(     snake_case_     ):
      if number < 0:
            raise ValueError("""number must not be negative"""     )
      return number & (number - 1) == 0


if __name__ == "__main__":
  import doctest

  doctest.testmod()

